summaryrefslogtreecommitdiffstats
path: root/scripts/xds-start-server.sh
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-05-26 16:03:24 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-05-27 23:07:38 +0200
commit0805255ee01103c500f2aae8845850b3dae6a0b6 (patch)
tree737de20f823bbe6f6a416f9ad52ab6b0641ece26 /scripts/xds-start-server.sh
parent49497b5b1e2a40ae9fac8bd43ecdfeed4d00e248 (diff)
Add doc to create & start XDS AGL docker container.
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'scripts/xds-start-server.sh')
-rwxr-xr-xscripts/xds-start-server.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/xds-start-server.sh b/scripts/xds-start-server.sh
index 9a6ff05..066029a 100755
--- a/scripts/xds-start-server.sh
+++ b/scripts/xds-start-server.sh
@@ -14,7 +14,7 @@
[[ -f $BINDIR/xds-server ]] || { echo "Cannot find xds-server in BINDIR !"; exit 1; }
# Create config.json file when needed
-if [ -f "${XDS_CONFFILE}" ]; then
+if [ ! -f "${XDS_CONFFILE}" ]; then
mv ${XDS_CONFFILE} ${XDS_CONFFILE}.old
[ ! -f "$XDS_WWWDIR/index.html" ] && XDS_WWWDIR=$BINDIR/www-xds-server
[ ! -f "$XDS_WWWDIR/index.html" ] && XDS_WWWDIR=/var/www/xds-server