trying to fix bug where ~/Library/profile.d/* disappears
This commit is contained in:
parent
edd60e54ca
commit
f9109b9026
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user