Browse Source

Add HOST/PORT evn

Joachim M. Giæver 3 years ago
parent
commit
2310123ddb
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/helper/env-wrapper

+ 3 - 0
src/helper/env-wrapper

@@ -85,4 +85,7 @@ export SERVER_URL=$(snapctl get server.url)
 export SERVER_WS_URL=$(snapctl get server.ws-url)
 export SERVER_WS_URL=$(snapctl get server.ws-url)
 export GIT_DIR="${SNAP}/usr/lib/zwavejs2mqtt/.git"
 export GIT_DIR="${SNAP}/usr/lib/zwavejs2mqtt/.git"
 
 
+export HOST="${SERVER_HOST}"
+export PORT="${SERVER_PORT}"
+
 exec "$@"
 exec "$@"