Rename to SYNCER_PORT

This commit is contained in:
Girish Ramakrishnan 2018-02-26 14:07:43 -08:00
parent 94520d61bf
commit 09b27ff425
2 changed files with 3 additions and 3 deletions

View File

@ -12,8 +12,8 @@
"localstorage": {} "localstorage": {}
}, },
"tcpPorts": { "tcpPorts": {
"PORT": { "SYNCER_PORT": {
"title": "Port", "title": "Sync Port",
"description": "Port over which syncthing will exchange data (do not disable)", "description": "Port over which syncthing will exchange data (do not disable)",
"defaultValue": 22000, "defaultValue": 22000,
"containerPort": 22000 "containerPort": 22000

View File

@ -13,7 +13,7 @@ if [ ! -f /app/data/config/config.xml ]; then
fi fi
# Set the listenAddress and the gui enabled to make sure user doesnt lock themselves out by accident. # 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,<listenAddress>.*</listenAddress>,<listenAddress>tcp://:${SYNCER_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 chown -R cloudron:cloudron /app/data/config /app/data