From 22f8c8625e9f7574debda394a458b1ab86c22d91 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Mon, 26 Feb 2018 14:51:26 -0800 Subject: [PATCH] Move env vars --- start.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/start.sh b/start.sh index 7685cbe..e16da25 100755 --- a/start.sh +++ b/start.sh @@ -7,7 +7,7 @@ mkdir -p /app/data/config # if this if the first run, generate a useful config if [ ! -f /app/data/config/config.xml ]; then echo "=> Generating config" - /app/code/syncthing --generate="/app/data/config" + STNODEFAULTFOLDER=1 /app/code/syncthing --generate="/app/data/config" # The password value was determined by reading config.xml and setting value in the GUI xmlstarlet ed --inplace \ @@ -24,5 +24,5 @@ chown -R cloudron:cloudron /app/data/config /app/data # -no-browser opens up the browser (for desktop app preumably) echo "=> Starting syncthing" -STNODEFAULTFOLDER=1 STNOUPGRADE=1 exec /usr/local/bin/gosu cloudron:cloudron /app/code/syncthing -gui-address=0.0.0.0:3000 -home=/app/data/config -no-browser +STNOUPGRADE=1 exec /usr/local/bin/gosu cloudron:cloudron /app/code/syncthing -gui-address=0.0.0.0:3000 -home=/app/data/config -no-browser