Merge pull request #312 from usmannasir/qtwrkdev2

more clean warning for sudo
This commit is contained in:
Usman Nasir 2020-04-22 21:08:06 +05:00 committed by GitHub
commit 91d5b7db50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 3 deletions

View File

@ -630,7 +630,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

View File

@ -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

View File

@ -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

1
faq.sh
View File

@ -11,6 +11,7 @@ NC='\033[0m' # No Color
#${GREEN} ${BLUE}
echo -e "Use Up/Down Arrow key to navigate\n"
echo -e "press ${RED}q${NC} to exit\n"
echo -e "Frequently Asked Question
${PURPLE}1.${NC} How to reset CyberPanel admin password?