Created
August 12, 2014 11:19
-
-
Save rtrouton/f5e8a6ed36dd37e9b62b to your computer and use it in GitHub Desktop.
This file contains 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/sh | |
#fix for custom guest login keychain errors | |
LOGGER="/usr/bin/logger" | |
GID=`id -g` | |
if [[ ${GID} == 201 ]]; then | |
$LOGGER -s -t fix.guest.keychain.sh "Current user is guest. Creating a login.keychain" 1>&2 | |
security create-keychain -p "" login.keychain | |
security login-keychain -s ~/Library/Keychains/login.keychain | |
security unlock-keychain -p "" login.keychain | |
fi | |
$LOGGER -s -t fix.guest.keychain.sh "Done" 1>&2 | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment