osx/custompkg/root/usr/local/bin/new-user-setup

13 lines
359 B
Plaintext
Raw Permalink Normal View History

2016-09-30 05:06:32 +00:00
#!/bin/bash
2016-10-03 21:17:48 +00:00
# Overlay files from /etc/skel to homedir
2016-10-08 00:37:22 +00:00
rsync --no-owner -avP /etc/skel/ $HOME/
2016-09-30 05:06:32 +00:00
2016-10-08 00:37:22 +00:00
# run modular setup scripts
for FN in $HOME/Library/user-setup/*.sh ; do
2017-01-05 04:54:42 +00:00
echo "new-user-setup: starting $(basename $FN)..."
2016-10-19 22:34:52 +00:00
bash "$FN" 2>&1 | tee -a $HOME/Library/Logs/user-setup.log
rm "$FN"
2017-01-05 04:54:42 +00:00
echo "new-user-setup: removed $(basename $FN)..."
2016-09-30 05:06:32 +00:00
done