Fixed possible race condition
This commit is contained in:
parent
ef92705074
commit
cfc7133606
3
start.sh
3
start.sh
|
@ -3,7 +3,6 @@
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
mkdir -p /app/data/config
|
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 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
|
||||||
|
@ -28,6 +27,8 @@ EOF
|
||||||
sed -e 's,<listenAddress>.*</listenAddress>,<listenAddress>tcp://:22000</listenAddress>,' -i /app/data/config/config.xml
|
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
|
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
|
export STNODEFAULTFOLDER=1 STNOUPGRADE=1
|
||||||
exec busybox init
|
exec busybox init
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue