1
0
mirror of https://git.cloudron.io/cloudron/syncthing-app synced 2025-09-24 22:07:36 +00:00

Fixed possible race condition

This commit is contained in:
Dennis Schwerdel
2017-06-10 11:25:07 +02:00
parent ef92705074
commit cfc7133606

View File

@@ -3,7 +3,6 @@
set -eu
mkdir -p /app/data/config
chown -R cloudron:cloudron /app/data/config /app/data &
# if this if the first run, generate a useful config
if [ ! -f /app/data/config/config.xml ]; then
@@ -28,6 +27,8 @@ EOF
sed -e 's,<listenAddress>.*</listenAddress>,<listenAddress>tcp://:22000</listenAddress>,' -i /app/data/config/config.xml
sed -e 's,<gui .*>,<gui enabled="true" tls="false" debugging="false">,' -i /app/data/config/config.xml
chown -R cloudron:cloudron /app/data/config /app/data
export STNODEFAULTFOLDER=1 STNOUPGRADE=1
exec busybox init