From 84db2d9e4728cccc2cdd670accc1e0ed12f6c26f Mon Sep 17 00:00:00 2001 From: qtwrk Date: Sun, 20 Sep 2020 14:14:38 +0200 Subject: [PATCH] Update cyberpanel_utility.sh --- cyberpanel_utility.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/cyberpanel_utility.sh b/cyberpanel_utility.sh index 8f258d409..4b4b814d0 100644 --- a/cyberpanel_utility.sh +++ b/cyberpanel_utility.sh @@ -45,8 +45,9 @@ printf "%s" "Please enter number [1-4]: " read TMP_YN if [[ $TMP_YN == "1" ]] ; then - #if [[ ! -f /etc/cyberpanel/watchdog.sh ]] ; then - #echo -e "\nWatchDog no found..." + if [[ -f /etc/cyberpanel/watchdog.sh ]] ; then + bash /etc/cyberpanel/watchdog.sh kill + fi rm -f /etc/cyberpanel/watchdog.sh rm -f /usr/local/bin/watchdog wget -O /etc/cyberpanel/watchdog.sh https://$GIT_CONTENT_URL/$BRANCH_NAME/CPScripts/watchdog.sh @@ -55,10 +56,6 @@ if [[ $TMP_YN == "1" ]] ; then echo -e "\nWatchDog has been installed/updated..." watchdog status set_watchdog - #else - #echo -e "\nWatchDog is already installed..." - #set_watchdog - #fi elif [[ $TMP_YN == "2" ]] ; then if [[ -f /etc/cyberpanel/watchdog.sh ]] ; then watchdog status