Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Admin9705 committed Sep 17, 2024
1 parent 10d1eac commit db49f0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mods/scripts/menu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ is_sudo() {
# Enhanced security check
if [[ -z "$SUDO_USER" ]]; then
echo ""
echo -e "${RED}Run as the user '$REQUIRED_USER' by using 'su $REQUIRED_USER'"
echo -e "${RED}Run as user '$REQUIRED_USER' by using typing 'su $REQUIRED_USER'"
echo -e "Then type 'sudo plexguide'${NC}"
echo ""
read -p "Press [ENTER] to acknowledge"
bash /pg/installer/menu_exit.sh
exit 1
elif [[ $SUDO_UID -ne 1000 ]] || [[ $SUDO_GID -ne 1000 ]]; then
echo ""
echo -e "${RED}Run as the user '$REQUIRED_USER' by using 'su $REQUIRED_USER'"
echo -e "${RED}Run as user '$REQUIRED_USER' by using typing 'su $REQUIRED_USER'"
echo -e "Then type 'sudo plexguide'${NC}"
echo ""
read -p "Press [ENTER] to acknowledge"
Expand All @@ -36,7 +36,7 @@ elif [[ $SUDO_UID -ne 1000 ]] || [[ $SUDO_GID -ne 1000 ]]; then
elif [[ $EUID -ne 0 ]]; then
echo ""
echo -e "${RED}WARNING: This script must be run with sudo privileges."
echo -e "${RED}Run as the user '$REQUIRED_USER' by using 'su $REQUIRED_USER'"
echo -e "Run as user '$REQUIRED_USER' by using typing 'su $REQUIRED_USER'"
echo -e "Then type 'sudo plexguide'${NC}"
echo ""
read -p "Press [ENTER] to acknowledge"
Expand Down

0 comments on commit db49f0c

Please sign in to comment.