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

11 lines
250 B
Bash

#!/bin/bash
# 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
bash "$FN" 2>&1 | tee -a $HOME/Library/Logs/user-setup.log
rm "$FN"
done