Move env vars
This commit is contained in:
parent
7a9f077e99
commit
22f8c8625e
4
start.sh
4
start.sh
|
@ -7,7 +7,7 @@ mkdir -p /app/data/config
|
||||||
# if this if the first run, generate a useful config
|
# if this if the first run, generate a useful config
|
||||||
if [ ! -f /app/data/config/config.xml ]; then
|
if [ ! -f /app/data/config/config.xml ]; then
|
||||||
echo "=> Generating config"
|
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
|
# The password value was determined by reading config.xml and setting value in the GUI
|
||||||
xmlstarlet ed --inplace \
|
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)
|
# -no-browser opens up the browser (for desktop app preumably)
|
||||||
echo "=> Starting syncthing"
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue