Because the first run of configure-stormux will be root, prompt the user to run it again without privileges.
This commit is contained in:
parent
3b6c1ab5bf
commit
4a325e67cb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user