From 9db19454a8a56e89fa9fe62036a32a427d5d8bfc Mon Sep 17 00:00:00 2001 From: qtwrk Date: Sat, 18 Apr 2020 20:35:19 +0200 Subject: [PATCH] more clear wanring for sudo --- cyberpanel.sh | 2 +- cyberpanel_upgrade.sh | 2 +- cyberpanel_utility.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cyberpanel.sh b/cyberpanel.sh index e4f12f4ec..a52fb8de5 100644 --- a/cyberpanel.sh +++ b/cyberpanel.sh @@ -631,7 +631,7 @@ check_root() { echo -e "\nChecking root privileges...\n" if echo $SUDO_TEST | grep SUDO > /dev/null ; then echo -e "\nYou are using SUDO , please run as root user...\n" - echo -e "If you don't have direct access to root user, please run \e[31msudo su -\e[39m command and then run installation command again." + echo -e "\nIf you don't have direct access to root user, please run \e[31msudo su -\e[39m command (do NOT miss the \e[31m-\e[39m at end or it will fail) and then run installation command again." exit fi diff --git a/cyberpanel_upgrade.sh b/cyberpanel_upgrade.sh index 41004b66a..750f1b224 100644 --- a/cyberpanel_upgrade.sh +++ b/cyberpanel_upgrade.sh @@ -109,7 +109,7 @@ check_root() { echo -e "\nChecking root privileges...\n" if echo $SUDO_TEST | grep SUDO > /dev/null ; then echo -e "\nYou are using SUDO , please run as root user...\n" - echo -e "If you don't have direct access to root user, please run \e[31msudo su -\e[39m command and then run upgrade command again." + echo -e "\nIf you don't have direct access to root user, please run \e[31msudo su -\e[39m command (do NOT miss the \e[31m-\e[39m at end or it will fail) and then run upgrade command again." exit fi diff --git a/cyberpanel_utility.sh b/cyberpanel_utility.sh index 129fa710b..3db86efa4 100644 --- a/cyberpanel_utility.sh +++ b/cyberpanel_utility.sh @@ -360,7 +360,7 @@ sudo_check() { echo -e "\nChecking root privileges..." if echo $SUDO_TEST | grep SUDO > /dev/null ; then echo -e "\nYou are using SUDO , please run as root user..." - echo -e "If you don't have direct access to root user, please run \e[31msudo su -\e[39m command and then run installation command again." + echo -e "\nIf you don't have direct access to root user, please run \e[31msudo su -\e[39m command (do NOT miss the \e[31m-\e[39m at end or it will fail) and then run utility command again." exit fi