1
0
mirror of https://git.cloudron.io/cloudron/syncthing-app synced 2025-09-21 12:27:35 +00:00

cosmetic changes for a new release

This commit is contained in:
Girish Ramakrishnan
2025-08-18 21:02:07 +05:30
parent 33406ddc9c
commit 457996f9cb

View File

@@ -6,7 +6,7 @@ mkdir -p /app/data/config /app/data/folders /run/syncthing
# if this if the first run, generate a useful config
if [[ ! -f /app/data/config/config.xml ]]; then
echo "=> Generating config"
echo "==> Generating config"
STNODEFAULTFOLDER=1 /app/code/syncthing generate --home="/app/data/config"
# The password value (changeme) was determined by reading config.xml and setting value in the GUI
@@ -31,12 +31,11 @@ if [[ -n ${CLOUDRON_LDAP_HOST:-} ]]; then
/app/data/config/config.xml
fi
# Set the listenAddress and the gui enabled to make sure user doesnt lock themselves out by accident.
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
chown -R cloudron:cloudron /app/data /run/syncthing
echo "Starting supervisor"
echo "==> Starting supervisor"
exec /usr/bin/supervisord --configuration /etc/supervisor/supervisord.conf --nodaemon -i syncthing