Created
May 11, 2016 23:59
-
-
Save lifuzu/da249bf3267d5893a9f3d6c44b34f5c4 to your computer and use it in GitHub Desktop.
Unlock keychain for longer time
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
KEYCHAIN="/Users/jenkins/Library/Keychains/login.keychain" | |
echo "Unlock keychain" | |
security unlock-keychain -p secure $KEYCHAIN | |
echo "Increase keychain unlock timeout" | |
security set-keychain-settings -lut 7200 $KEYCHAIN | |
echo "Add keychain to keychain-list" | |
security list-keychains -s $KEYCHAIN |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you very much. But why do you need this line?
security list-keychains -s $KEYCHAIN