|
@@ -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
|