瀏覽代碼

remove options

Joachim M. Giæver 3 年之前
父節點
當前提交
6332ab2b53
共有 2 個文件被更改,包括 0 次插入6 次删除
  1. 0 4
      src/helper/env-wrapper
  2. 0 2
      src/hooks/install

+ 0 - 4
src/helper/env-wrapper

@@ -54,8 +54,6 @@ if [ ${OPT_HELP} = true ]; then
     echo "- server.ssl: Use secure communication"
     echo "- server.host: IP address to bind to, e.g 127.0.0.1"
     echo "- server.port: Port to reach the web interface"
-    echo "- server.url: Hostname for http/https"
-    echo "- server.ws-url: Hostname for websocket"
     echo ""
     echo "Set options with:         $ snap set ${SNAP_NAME} param=key"
     echo "For example:              $ snap set ${SNAP_NAME} server.host=0.0.0.0"
@@ -81,8 +79,6 @@ fi
 export SERVER_SSL=$(snapctl get server.ssl)
 export SERVER_HOST=$(snapctl get server.host)
 export SERVER_PORT=$(snapctl get server.port)
-export SERVER_URL=$(snapctl get server.url)
-export SERVER_WS_URL=$(snapctl get server.ws-url)
 
 export GIT_DIR="${SNAP}/usr/lib/zwavejs2mqtt/.git"
 

+ 0 - 2
src/hooks/install

@@ -7,8 +7,6 @@ snapctl set network.key="$(cat /dev/urandom | LC_ALL=C tr -dc '0-9A-F' | fold -w
 snapctl set server.ssl=false
 snapctl set server.host="localhost"
 snapctl set server.port="8091"
-snapctl set server.url=false
-snapctl set server.ws-url=false
 
 snapctl stop --disable "${SNAP_NAME}.${SNAP_NAME}"