Update cyberpanel_utility.sh

This commit is contained in:
qtwrk
2020-09-20 14:14:38 +02:00
committed by GitHub
parent be11c5f9df
commit 84db2d9e47

View File

@@ -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