[UPDATE] Check IP service client/server
This commit is contained in:
parent
ec27b17ed6
commit
034f15c009
@ -16,7 +16,7 @@ if [[ $(id -u) != "0" ]]
|
||||
Exit root
|
||||
fi
|
||||
|
||||
[[ ! -z $(ifconfig | grep inet | awk '{print $2}' | grep $LocalIp) ]] && Exit Config
|
||||
[[ ! -z $(ifconfig | grep inet | awk '{print $2}' | grep $Ip) ]] && Exit Config
|
||||
|
||||
if [[ "$1" == "start" ]]
|
||||
then
|
||||
|
||||
@ -18,7 +18,7 @@ if [[ $(id -u) != "0" ]]
|
||||
Exit root
|
||||
fi
|
||||
|
||||
[[ ! -z $(ifconfig | grep inet | awk '{print $2}' | grep $LocalIp) ]] && Exit Config
|
||||
[[ -z $(ifconfig | grep inet | awk '{print $2}' | grep $LocalIp) ]] && Exit Config
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user