X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=install.sh;h=877058beb19d507b8763729c5063d86afbcb9a23;hb=809b228a518969bde230024bd272b0a51ca4cbf4;hp=b150112790beb473735df663f490781bc9feedab;hpb=83c9d9387e2895e1cf7175f3abdd3ba1564fd5da;p=ConfigScripts.git diff --git a/install.sh b/install.sh index b150112..877058b 100755 --- a/install.sh +++ b/install.sh @@ -84,6 +84,21 @@ Config_User() { fi } +Config_Skel() { + if [ -w /etc/skel ]; then + Msg "Starting \"/etc/skel\" configuration:\n" + Copy_File user/bash_logout /etc/skel/.bash_logout + if [ -e /etc/skel/.profile ]; then + Copy_File user/bash_profile /etc/skel/.profile root 644 + else + Copy_File user/bash_profile /etc/skel/.bash_profile root 644 + fi + Copy_File user/bashrc /etc/skel/.bashrc root 644 + else + Msg "Can't write to \"/etc/skel\" - configuration SKIPPED.\n" + fi +} + Config_RootUser() { if [ "$UID" = "0" ]; then user=`grep "^.*:.*:0:" /etc/passwd | head -n 1 | cut -d':' -f1` @@ -113,6 +128,7 @@ Msg "Running $NAME (uid=$UID) ...\n" user=`basename "$HOME"` Config_System +Config_Skel Config_User "$user" "$HOME" Config_RootUser