Skip to content

Instantly share code, notes, and snippets.

@ryanobjc
Created September 6, 2012 23:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanobjc/3661183 to your computer and use it in GitHub Desktop.
Save ryanobjc/3661183 to your computer and use it in GitHub Desktop.
postinst
#!/bin/sh
if [ -x `which update-rc.d` ] ; then
update-rc.d carbon-cache defaults
else
chkconfig --add carbon-cache
fi
rm /etc/apache2/sites-enables/000-default
ln -sf /opt/graphite/examples/example-graphite-vhost.conf /etc/apache2/sites-enabled/graphite-vhost.conf
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment