From 4a325e67cbb38e36628a8bdbfffb2667a79203b5 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sun, 24 Sep 2023 15:54:26 -0400 Subject: [PATCH] Because the first run of configure-stormux will be root, prompt the user to run it again without privileges. --- configure-stormux.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure-stormux.sh b/configure-stormux.sh index 51c59db..59d423d 100755 --- a/configure-stormux.sh +++ b/configure-stormux.sh @@ -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