[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
|
Exit root
|
||||||
fi
|
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" ]]
|
if [[ "$1" == "start" ]]
|
||||||
then
|
then
|
||||||
|
|||||||
@ -18,7 +18,7 @@ if [[ $(id -u) != "0" ]]
|
|||||||
Exit root
|
Exit root
|
||||||
fi
|
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