]> arthur.barton.de Git - ConfigScripts.git/commitdiff
Install root-owned files with root group, too
authorAlexander Barton <alex@barton.de>
Fri, 22 Nov 2013 15:41:03 +0000 (16:41 +0100)
committerAlexander Barton <alex@barton.de>
Fri, 22 Nov 2013 15:41:03 +0000 (16:41 +0100)
install.sh

index 7a4d632c4e23f773ef60effd3a06fdac8b709b52..7473e97a3836cf97fc3159df5b7b89d9e02efdc2 100755 (executable)
@@ -41,11 +41,11 @@ Config_System() {
                Msg "Starting system configuration:\n"
                Msg " - bash shell:\n"
                if [ -e /etc/bash.bashrc ]; then
-                       Copy_File sys/bashrc /etc/bash.bashrc root 644
+                       Copy_File sys/bashrc /etc/bash.bashrc root:0 644
                else
-                       Copy_File sys/bashrc /etc/bashrc root 644
+                       Copy_File sys/bashrc /etc/bashrc root:0 644
                fi
-               Copy_File sys/profile /etc/profile root 644
+               Copy_File sys/profile /etc/profile root:0 644
        else
                Msg "Not running with root privileges - system configuration SKIPPED.\n"
                grep "alex@barton.de" /etc/profile >/dev/null 2>&1
@@ -89,13 +89,13 @@ Config_Skel() {
        if [ -w /etc/skel -a -z "$I_local" ]; then
                Msg "Starting \"/etc/skel\" configuration:\n"
                Msg " - bash shell:\n"
-               Copy_File user/bash_logout /etc/skel/.bash_logout root 644
+               Copy_File user/bash_logout /etc/skel/.bash_logout root:0 644
                if [ -e /etc/skel/.profile ]; then
-                       Copy_File user/bash_profile /etc/skel/.profile root 644
+                       Copy_File user/bash_profile /etc/skel/.profile root:0 644
                else
-                       Copy_File user/bash_profile /etc/skel/.bash_profile root 644
+                       Copy_File user/bash_profile /etc/skel/.bash_profile root:0 644
                fi
-               Copy_File user/bashrc /etc/skel/.bashrc root 644
+               Copy_File user/bashrc /etc/skel/.bashrc root:0 644
        else
                [ -z "$I_local" ] \
                        && Msg "Can't write to \"/etc/skel\" - configuration SKIPPED.\n" \