Created
March 4, 2015 18:48
-
-
Save nmcspadden/4b76110601ccf4c86880 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/bash | |
/usr/bin/chef-client --once --run-lock-timeout 120 --runlist "recipe[x509::munki2_client]" | |
sleep 5 | |
if [[ -f /etc/ssl/munki2.sacredsf.org.crt ]]; then | |
while [ ! -f /Library/Managed\ Installs/certs/clientcert.pem ] | |
do | |
/usr/bin/chef-client --once --run-lock-timeout 120 --runlist "recipe[munkiSSL::munki]" | |
done | |
touch /Users/Shared/.com.googlecode.munki.checkandinstallatstartup | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment