Skip to content

Instantly share code, notes, and snippets.

@nathenharvey
Created July 12, 2013 12:31
Show Gist options
  • Save nathenharvey/5984108 to your computer and use it in GitHub Desktop.
Save nathenharvey/5984108 to your computer and use it in GitHub Desktop.
echo "Installing Chef $version"
case "$filetype" in
"rpm") rpm -Uvh "$tmp_dir/$filename" ;;
"deb") dpkg -i "$tmp_dir/$filename" ;;
"solaris") echo "conflict=nocheck" > /tmp/nocheck
echo "action=nocheck" >> /tmp/nocheck
pkgadd -n -d "$tmp_dir/$filename" -a /tmp/nocheck chef
;;
"sh" ) bash "$tmp_dir/$filename" ;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment