Fixed possible race condition

This commit is contained in:
Dennis Schwerdel 2017-06-10 11:25:07 +02:00
parent ef92705074
commit cfc7133606
1 changed files with 2 additions and 1 deletions

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