From 09f2582b469da9f7ee2e639459a953ffbf83d728 Mon Sep 17 00:00:00 2001 From: "Esteban Mackay Q." Date: Mon, 27 May 2024 22:54:17 -0500 Subject: [PATCH] Update update.sh --- update.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/update.sh b/update.sh index b09b2b2..4d6e097 100644 --- a/update.sh +++ b/update.sh @@ -741,7 +741,12 @@ then (crontab -l | grep -v "sh /opt/FDMR-Monitor/sysinfo/graph.sh") | crontab - fi +if systemctl status proxy.service |grep "service; enabled;" >/dev/null 2>&1 +then + sudo systemctl stop proxy.service + sudo systemctl start proxy.service +fi ############## sh /opt/extra-2.sh @@ -965,6 +970,12 @@ then (crontab -l | grep -v "sh /opt/FDMR-Monitor/sysinfo/cpu.sh") | crontab - (crontab -l | grep -v "sh /opt/FDMR-Monitor/sysinfo/graph.sh") | crontab - +fi +if systemctl status proxy.service |grep "service; enabled;" >/dev/null 2>&1 +then + sudo systemctl stop proxy.service + sudo systemctl start proxy.service + fi sh /opt/extra-3.sh