mirror of
https://git.cloudron.io/cloudron/syncthing-app
synced 2025-09-26 06:47:25 +00:00
Adds back some config settings in order to confirm they are set on each startup
This commit is contained in:
5
start.sh
5
start.sh
@@ -11,7 +11,6 @@ if [ ! -f /app/data/config/config.xml ]; then
|
|||||||
/app/code/syncthing --generate="/app/data/config"
|
/app/code/syncthing --generate="/app/data/config"
|
||||||
# don't take the whole volume with the default so that we can add additional folders
|
# don't take the whole volume with the default so that we can add additional folders
|
||||||
sed -i "s/path=\"\/root\/Sync\/\" /path=\"\/app\/data\/default\/\"/g" /app/data/config/config.xml
|
sed -i "s/path=\"\/root\/Sync\/\" /path=\"\/app\/data\/default\/\"/g" /app/data/config/config.xml
|
||||||
sed -e 's,<listenAddress>.*</listenAddress>,<listenAddress>tcp://:22000</listenAddress>,' -i /app/data/config/config.xml
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat >/run/ldap.conf <<EOF
|
cat >/run/ldap.conf <<EOF
|
||||||
@@ -25,6 +24,10 @@ ldap_server cloudron {
|
|||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
# Set the listenAddress and the gui enabled to make sure user doesnt lock themselves out by accident.
|
||||||
|
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
|
||||||
|
|
||||||
export STNODEFAULTFOLDER=1 STNOUPGRADE=1
|
export STNODEFAULTFOLDER=1 STNOUPGRADE=1
|
||||||
exec busybox init
|
exec busybox init
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user