Update nodemgmt-scripts.sh

This commit is contained in:
2021-06-27 19:43:55 -05:00
parent eb94fb1f6f
commit 54c7091ce5

View File

@@ -1428,10 +1428,10 @@ SERVICE(){
NCMD="ssh root@${nip}"
fi
$GO=true;
GO=true;
if [ "${2}" = "gitea" ]; then
if [[ $($NCMD /sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) != *10.5.10.120* ]]; then
$GO=false;
GO=false;
fi
fi