瀏覽代碼

Use _cdomain if ROUTER_OS_HOST is missing

Pål Håland 7 年之前
父節點
當前提交
e629985cf4
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      deploy/routeros.sh

+ 2 - 2
deploy/routeros.sh

@@ -21,8 +21,8 @@ routeros_deploy() {
   _debug _cfullchain "$_cfullchain"
 
   if [ -z "$ROUTER_OS_HOST" ]; then
-    _err "Need to set the env variable ROUTER_OS_HOST"
-    return 1
+    _debug "Using _cdomain as ROUTER_OS_HOST, please set if not correct."
+    ROUTER_OS_HOST = "$_cdomain"
   fi
 
   if [ -z "$ROUTER_OS_USERNAME" ]; then