Преглед изворни кода

Fixed possible race condition

Dennis Schwerdel пре 8 година
родитељ
комит
cfc7133606
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      start.sh

+ 2 - 1
start.sh

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