Move env vars

This commit is contained in:
Girish Ramakrishnan 2018-02-26 14:51:26 -08:00
parent 7a9f077e99
commit 22f8c8625e
1 changed files with 2 additions and 2 deletions

View File

@ -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