Use SYNC_PORT instead
This commit is contained in:
parent
9e7649fe36
commit
7a9f077e99
|
@ -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,
|
||||
|
|
2
start.sh
2
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,<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
|
||||
|
||||
chown -R cloudron:cloudron /app/data/config /app/data
|
||||
|
|
|
@ -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 () {
|
||||
|
|
Loading…
Reference in New Issue