]> arthur.barton.de Git - ConfigScripts.git/blobdiff - install.sh
install.sh: Don't handle root user specially
[ConfigScripts.git] / install.sh
index 19110835968754dac45e9353912663acfe875606..b2ea6c41fb54f29230ba0fb0f6f445b257758a89 100755 (executable)
@@ -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"