X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=install.sh;h=e3b0359d97da73b35246a198243c3de811cac2ad;hb=80703fae64728e727171d114e86366aa2c0eb214;hp=7473e97a3836cf97fc3159df5b7b89d9e02efdc2;hpb=11b4c6547cefd869534a1cd48243d677091e48a7;p=ConfigScripts.git diff --git a/install.sh b/install.sh index 7473e97..e3b0359 100755 --- a/install.sh +++ b/install.sh @@ -37,7 +37,7 @@ Copy_File() { } Config_System() { - if [ "$UID" = "0" -a -z "$I_local" ]; then + if [ "$EUID" = "0" -a -z "$I_local" ]; then Msg "Starting system configuration:\n" Msg " - bash shell:\n" if [ -e /etc/bash.bashrc ]; then @@ -114,10 +114,11 @@ while [ $# -gt 0 ]; do shift done -[ -n "$UID" ] || UID=`id -u` -export UID +[ -n "$UID" ] || UID=`id -r -u` +[ -n "$EUID" ] || EUID=`id -u` +export UID EUID -Msg "Running $NAME (uid=$UID) ...\n" +Msg "Running $NAME (uid=$UID; euid=$EUID) ...\n" user=`basename "$HOME"`