Skip to content

Instantly share code, notes, and snippets.

@nmcspadden
Created March 4, 2015 18:48
Show Gist options
  • Save nmcspadden/4b76110601ccf4c86880 to your computer and use it in GitHub Desktop.
Save nmcspadden/4b76110601ccf4c86880 to your computer and use it in GitHub Desktop.
#!/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