Skip to content
Permalink
Browse files
fix sudo detection
  • Loading branch information
qtwrk committed Jan 13, 2020
1 parent 6ee6208 commit f6e42688142b71ad83da8963fd146b6323ca82b4
Showing with 2 additions and 1 deletion.
  1. +2 −1 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

0 comments on commit f6e4268

Please sign in to comment.