From f6e42688142b71ad83da8963fd146b6323ca82b4 Mon Sep 17 00:00:00 2001 From: qtwrk Date: Mon, 13 Jan 2020 14:41:00 +0100 Subject: [PATCH] fix sudo detection --- cyberpanel.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cyberpanel.sh b/cyberpanel.sh index c45f0a65a..cc0830cf4 100644 --- a/cyberpanel.sh +++ b/cyberpanel.sh @@ -4,6 +4,7 @@ export LC_CTYPE=en_US.UTF-8 +SUDO_TEST=$(set) DEV="OFF" BRANCH="stable" POSTFIX_VARIABLE="ON" @@ -610,7 +611,7 @@ fi check_root() { echo -e "\nChecking root privileges...\n" -if echo $(set) | grep SUDO > /dev/null ; then +if echo $SUDO_TEST | grep SUDO > /dev/null ; then echo -e "\nYou are using SUDO , please run as root user...\n" exit fi