Skip to content

Instantly share code, notes, and snippets.

@pantoniotti
Created June 27, 2013 20:09
Show Gist options
  • Save pantoniotti/5879941 to your computer and use it in GitHub Desktop.
Save pantoniotti/5879941 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
if aptitude search '~i ^nginx$' | grep -q nginx; then
echo "nginx already installed, skipping."
else
aptitude -y install nginx
service nginx start
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment