forked from HL7/fhir-udap-security-ig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_genonce.sh
35 lines (29 loc) · 1.08 KB
/
_genonce.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
# *************************************************************************************************
# * WARNING: DO NOT EDIT THIS FILE *
# * *
# * This file is generated by SUSHI. Any edits you make to this file will be overwritten. *
# *************************************************************************************************
publisher_jar=publisher.jar
input_cache_path=./input-cache/
echo Checking internet connection...
curl -sSf tx.fhir.org > /dev/null
if [ $? -eq 0 ]; then
echo "Online"
txoption=""
else
echo "Offline"
txoption="-tx n/a"
fi
echo "$txoption"
publisher=$input_cache_path/$publisher_jar
if test -f "$publisher"; then
java -jar $publisher -ig ig.ini $txoption $*
else
publisher=../$publisher_jar
if test -f "$publisher"; then
java -jar $publisher -ig ig.ini $txoption $*
else
echo IG Publisher NOT FOUND in input-cache or parent folder. Please run _updatePublisher. Aborting...
fi
fi