mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-01-16 04:22:05 +01:00
more clear wanring for sudo
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user