Created
October 19, 2018 23:21
-
-
Save khaosx/291e7c609b2156c5c6a93a6ad754b27e to your computer and use it in GitHub Desktop.
Backs up parental control settings per child
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for $kid in kida kidb kidc | |
do | |
echo Backing up parental controls for $kid to /Volumes/Storage/Sodium/ParentalControls/$kid.parentalcontrols | |
dscl . -mcxexport /Users/$kid > /Volumes/Storage/Sodium/ParentalControls/$kid.parentalcontrols | |
done | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment