Skip to content

Instantly share code, notes, and snippets.

View ryantownsend's full-sized avatar

Ryan Townsend ryantownsend

View GitHub Profile
#!/bin/bash
# This runs as root on the server
chef_binary=/var/lib/gems/1.9.1/bin/chef-solo
# Are we on a vanilla system?
if ! test -f "$chef_binary"; then
export DEBIAN_FRONTEND=noninteractive
# Upgrade headlessly (this is only safe-ish on vanilla systems)