Browse Source

Updated rpm post install script, #1758

Torkel Ödegaard 10 years ago
parent
commit
be8a72c35b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packaging/rpm/control/postinst

+ 2 - 2
packaging/rpm/control/postinst

@@ -55,9 +55,9 @@ if [ $1 -eq 1 ] ; then
     echo "### You can start grafana-server by executing"
     echo " sudo /bin/systemctl start grafana-server.service"
 
-  elif [ -x /usr/sbin/update-rc.d ] ; then
+  elif [ -x /sbin/chkconfig ] ; then
     echo "### NOT starting grafana-server by default on bootup, please execute"
-    echo " sudo update-rc.d grafana-server defaults 95 10"
+    echo " sudo /sbin/chkconfig --add grafana-server"
     echo "### In order to start grafana-server, execute"
     echo " sudo service grafana-server start"
   fi