Because the first run of configure-stormux will be root, prompt the user to run it again without privileges.

This commit is contained in:
Storm Dragon 2023-09-24 15:54:26 -04:00
parent 3b6c1ab5bf
commit 4a325e67cb

View File

@ -22,6 +22,12 @@
#--code--
# Do not run as root.
if [[ "$(whoami)" == "root" ]]; then
echo "Please run configure-stormux as your user, not as root."
exit 0
fi
# For audible sudo prompts:
unset sudoFlags
if [[ -x /etc/audibleprompt.sh ]]; then