Update nodemgmt-scripts.sh

This commit is contained in:
2023-01-23 20:53:15 -06:00
parent 35ec99e35e
commit d3e46ec3d2

View File

@@ -2043,7 +2043,7 @@ HAPROXY-CONFIG() {
SINGLE_SERVER_SERVICE_CHECK(){
if [ "${1}" = "web" ]; then
local_ips=$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1);
loca_ip=$(/sbin/ip -o -4 addr list eth0 |grep 255 | awk '{print $4}' | cut -d/ -f1)
local_ip=$(/sbin/ip -o -4 addr list eth0 |grep 255 | awk '{print $4}' | cut -d/ -f1)
if [[ ${local_ips} = *10.10.1.120* ]]; then
if [ -f /mnt/web-data/mounted ]; then
if [ "$(systemctl is-active gitea)" != "active" ]; then