|
@@ -2,7 +2,7 @@
|
|
|
|
|
|
set -eu
|
|
set -eu
|
|
|
|
|
|
-mkdir -p /app/data/config /app/data/folders
|
|
|
|
|
|
+mkdir -p /app/data/config /app/data/folders /run/syncthing
|
|
|
|
|
|
# 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
|
|
@@ -21,10 +21,7 @@ fi
|
|
sed -e "s,<listenAddress>.*</listenAddress>,<listenAddress>tcp://:${SYNC_PORT}</listenAddress>," -i /app/data/config/config.xml
|
|
sed -e "s,<listenAddress>.*</listenAddress>,<listenAddress>tcp://:${SYNC_PORT}</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
|
|
|
|
-
|
|
|
|
-# -no-browser opens up the browser (for desktop app preumably)
|
|
|
|
-# auditfile "-" means log to stdout
|
|
|
|
-echo "=> Starting syncthing"
|
|
|
|
-STNOUPGRADE=1 exec /usr/local/bin/gosu cloudron:cloudron /app/code/syncthing -gui-address=0.0.0.0:3000 -home=/app/data/config -no-browser -auditfile=-
|
|
|
|
|
|
+chown -R cloudron:cloudron /app/data /run/syncthing
|
|
|
|
|
|
|
|
+echo "Starting supervisor"
|
|
|
|
+exec /usr/bin/supervisord --configuration /etc/supervisor/supervisord.conf --nodaemon -i GitLab
|