From: Alexander Barton Date: Fri, 22 Nov 2013 15:31:33 +0000 (+0100) Subject: install.sh: Don't handle root user specially X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ConfigScripts.git;a=commitdiff_plain;h=49942853cce56e4a8b43ad68ccc7dd7235992c79 install.sh: Don't handle root user specially --- diff --git a/install.sh b/install.sh index 1911083..b2ea6c4 100755 --- a/install.sh +++ b/install.sh @@ -103,16 +103,6 @@ Config_Skel() { fi } -Config_RootUser() { - if [ "$UID" = "0" ]; then - user=`grep "^.*:.*:0:" /etc/passwd | head -n 1 | cut -d':' -f1` - home=`grep "^.*:.*:0:" /etc/passwd | cut -d':' -f6` - Config_User "$user" "$home" - else - Msg "Not running with root privileges - root user configuration SKIPPED.\n" - fi -} - while [ $# -gt 0 ]; do case "$1" in "--local"|"-l") @@ -134,7 +124,6 @@ user=`basename "$HOME"` Config_Skel Config_System Config_User "$user" "$HOME" -Config_RootUser Msg "$NAME: Done.\n"