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