From 7a9f077e9968d6da30a0111fdf6eef876db26d29 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Mon, 26 Feb 2018 14:46:02 -0800 Subject: [PATCH] Use SYNC_PORT instead --- CloudronManifest.json | 2 +- start.sh | 2 +- test/test.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CloudronManifest.json b/CloudronManifest.json index b3a9a4c..63ff035 100644 --- a/CloudronManifest.json +++ b/CloudronManifest.json @@ -12,7 +12,7 @@ "localstorage": {} }, "tcpPorts": { - "SYNCER_PORT": { + "SYNC_PORT": { "title": "Sync Port", "description": "Port over which syncthing will exchange data (do not disable)", "defaultValue": 22000, diff --git a/start.sh b/start.sh index a88f65d..7685cbe 100755 --- a/start.sh +++ b/start.sh @@ -17,7 +17,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://:${SYNCER_PORT}," -i /app/data/config/config.xml +sed -e "s,.*,tcp://:${SYNC_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 diff --git a/test/test.js b/test/test.js index 4578754..8f03840 100644 --- a/test/test.js +++ b/test/test.js @@ -118,7 +118,7 @@ describe('Application life cycle test', function () { }); it('install app', function () { - execSync('cloudron install --new --wait --port-bindings PORT=' + SYNC_PORT + ' --location ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' }); + execSync('cloudron install --new --wait --port-bindings SYNC_PORT=' + SYNC_PORT + ' --location ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' }); }); it('can get app information', function () {