Permalink
Browse files

Test if chkconfig exists -- this allows RPMs to be converted with alien

  • Loading branch information...
1 parent 25f767e commit f8c16f969aaba9eb59bbe86a08f956c85a781b65 Brian Hatfield committed Jun 5, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 distro/redhat/misc/postinstall
@@ -2,7 +2,10 @@
INIT_SCRIPTS="carbon-cache carbon-relay carbon-aggregator";
for s in $INIT_SCRIPTS; do
/bin/chmod +x /etc/init.d/${s};
- /sbin/chkconfig --add ${s} ;
+
+ if [ -x /sbin/chkconfig ]; then
+ /sbin/chkconfig --add ${s};
+ fi;
done;
GRAPHITE_PATH=/opt/graphite

0 comments on commit f8c16f9

Please sign in to comment.