Browse Source

Fixing wrong port number shown in wekan.help

Signed-off-by: Ondrej Kubik <ondrej.kubik@canonical.com>
Ondrej Kubik 7 years ago
parent
commit
ad1a181f6d
1 changed files with 4 additions and 0 deletions
  1. 4 0
      snap-src/bin/wekan-help

+ 4 - 0
snap-src/bin/wekan-help

@@ -2,6 +2,10 @@
 
 # first read settings
 source $SNAP/bin/wekan-read-settings &>/dev/null
+if [ "$CADDY_ENABLED" = "true" ]; then
+    # tweak port nunmber as it has been remapped
+    export PORT=${CADDY_PORT} &>/dev/null
+fi
 
 echo -e "Wekan: The open-source Trello-like kanban.\n"
 echo -e "Make sure you have connected all interfaces, check more by calling $ snap interfaces"