Update nodemgmt-scripts.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user