Browse Source

Move env vars

Girish Ramakrishnan 7 năm trước cách đây
mục cha
commit
22f8c8625e
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      start.sh

+ 2 - 2
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