File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 610610
611611check_root () {
612612echo -e " \nChecking root privileges...\n"
613+ if echo $( set) | grep SUDO > /dev/null ; then
614+ echo -e " \nYou are using SUDO , please run as root user...\n"
615+ exit
616+ fi
617+
613618if [[ $( id -u) != 0 ]] > /dev/null; then
614- echo -e " You must use root account to do this "
615- echo -e " or run following command: (do NOT miss the quotes)"
616- echo -e " \e[31msudo su -c \" sh <(curl https://cyberpanel.sh || wget -O - https://cyberpanel.sh)\" \e[39m"
619+ echo -e " \nYou must use root user to install CyberPanel...\n "
620+ # echo -e "or run following command: (do NOT miss the quotes)"
621+ # echo -e "\e[31msudo su -c \"sh <(curl https://cyberpanel.sh || wget -O - https://cyberpanel.sh)\"\e[39m"
617622 exit 1
618623else
619- echo -e " You are runing as root...\n"
624+ echo -e " \nYou are runing as root...\n"
620625fi
621626}
622627
You can’t perform that action at this time.
0 commit comments