From 09b27ff42561ea629854835dbacd411832965663 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Mon, 26 Feb 2018 14:07:43 -0800 Subject: [PATCH] Rename to SYNCER_PORT --- CloudronManifest.json | 4 ++-- start.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CloudronManifest.json b/CloudronManifest.json index 4bb69ea..b3a9a4c 100644 --- a/CloudronManifest.json +++ b/CloudronManifest.json @@ -12,8 +12,8 @@ "localstorage": {} }, "tcpPorts": { - "PORT": { - "title": "Port", + "SYNCER_PORT": { + "title": "Sync Port", "description": "Port over which syncthing will exchange data (do not disable)", "defaultValue": 22000, "containerPort": 22000 diff --git a/start.sh b/start.sh index 991b9c2..c3093ac 100755 --- a/start.sh +++ b/start.sh @@ -13,7 +13,7 @@ if [ ! -f /app/data/config/config.xml ]; then fi # Set the listenAddress and the gui enabled to make sure user doesnt lock themselves out by accident. -sed -e 's,.*,tcp://:22000,' -i /app/data/config/config.xml +sed -e "s,.*,tcp://:${SYNCER_PORT}," -i /app/data/config/config.xml sed -e 's,,,' -i /app/data/config/config.xml chown -R cloudron:cloudron /app/data/config /app/data