Use SYNC_PORT instead

This commit is contained in:
Girish Ramakrishnan 2018-02-26 14:46:02 -08:00
parent 9e7649fe36
commit 7a9f077e99
3 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@
"localstorage": {} "localstorage": {}
}, },
"tcpPorts": { "tcpPorts": {
"SYNCER_PORT": { "SYNC_PORT": {
"title": "Sync 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,

View File

@ -17,7 +17,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://:${SYNCER_PORT}</listenAddress>," -i /app/data/config/config.xml 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 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

View File

@ -118,7 +118,7 @@ describe('Application life cycle test', function () {
}); });
it('install app', 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 () { it('can get app information', function () {