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:
3
start.sh
3
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
|
||||
|
||||
|
Reference in New Issue
Block a user