trying to fix bug where ~/Library/profile.d/* disappears

This commit is contained in:
Jeffrey Paul 2016-10-08 13:01:03 -04:00
parent edd60e54ca
commit f9109b9026
2 changed files with 4 additions and 4 deletions

View File

@ -1,10 +1,10 @@
#!/bin/bash
# Copy files from /etc/skel to homedir
# Overlay files from /etc/skel to homedir
rsync --no-owner -avP /etc/skel/ $HOME/
# run modular setup scripts
for FN in $HOME/Library/user-setup/*.sh ; do
source $FN
rm $FN
bash "$FN"
rm "$FN"
done

View File

@ -5,5 +5,5 @@ touch "$3"/var/db/.AppleDiagnosticsSetupDone
touch "$3"/var/db/.AppleSetupDone
chmod a+rx "$3"/usr/local/bin/*
chmod -R a+r "$3"/etc/skel
chmod -R a+rX "$3"/etc/skel