Skip to content
This repository has been archived by the owner on Oct 30, 2020. It is now read-only.

Commit

Permalink
Test if chkconfig exists -- this allows RPMs to be converted with alien
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Hatfield committed Jun 5, 2012
1 parent 25f767e commit f8c16f9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion distro/redhat/misc/postinstall
Expand Up @@ -2,7 +2,10 @@
INIT_SCRIPTS="carbon-cache carbon-relay carbon-aggregator"; INIT_SCRIPTS="carbon-cache carbon-relay carbon-aggregator";
for s in $INIT_SCRIPTS; do for s in $INIT_SCRIPTS; do
/bin/chmod +x /etc/init.d/${s}; /bin/chmod +x /etc/init.d/${s};
/sbin/chkconfig --add ${s} ;
if [ -x /sbin/chkconfig ]; then
/sbin/chkconfig --add ${s};
fi;
done; done;


GRAPHITE_PATH=/opt/graphite GRAPHITE_PATH=/opt/graphite
Expand Down

0 comments on commit f8c16f9

Please sign in to comment.