dever 5 anni fa
parent
commit
97c7db50e0
1 ha cambiato i file con 8 aggiunte e 8 eliminazioni
  1. 8 8
      src/shell/ngrok/daemon

+ 8 - 8
src/shell/ngrok/daemon

@@ -6,12 +6,12 @@ port=$2
 path=$3
 while true
 do
-	pids=`ps aux|grep "ngrok -subdomain=$1 -config=${$path}ngrok.cfg $port"|grep -v entrypoint|grep -v grep|grep -v process|awk '{print $1}'`
-	if [ "$pids" ]; then
-		sleep 60
-	else
-		${path}expect $name $domain $port $path
-		echo "ngrok started"
-		sleep 60
-	fi
+    pids=`ps aux|grep "ngrok -subdomain=$1 -config=${$path}ngrok.cfg $port"|grep -v entrypoint|grep -v grep|grep -v process|awk '{print $1}'`
+    if [ "$pids" ]; then
+        sleep 60
+    else
+        ${path}expect $name $domain $port $path
+        echo "ngrok started"
+        sleep 60
+    fi
 done