Bladeren bron

Rename to SYNCER_PORT

Girish Ramakrishnan 7 jaren geleden
bovenliggende
commit
09b27ff425
2 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 2 2
      CloudronManifest.json
  2. 1 1
      start.sh

+ 2 - 2
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

+ 1 - 1
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,<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
 
 chown -R cloudron:cloudron /app/data/config /app/data