Created
September 6, 2012 23:16
-
-
Save ryanobjc/3661183 to your computer and use it in GitHub Desktop.
postinst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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