From 48819fd583e0b99006963c5249e636d9b10af00f Mon Sep 17 00:00:00 2001 From: qtwrk Date: Tue, 14 Jan 2020 23:44:39 +0100 Subject: [PATCH] fix sudo detection with more fridenly output --- cyberpanel.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/cyberpanel.sh b/cyberpanel.sh index 9c9f2ac91..1a4eb478c 100644 --- a/cyberpanel.sh +++ b/cyberpanel.sh @@ -613,6 +613,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." exit fi