Commit bccdd7ca by rrickardt Committed by Torkel Ödegaard

Update postinst (#7233)

With present postinst script on Centos 7, restart after upgrade is not working with Warning: grafana-server.service changed on disk. Run 'systemctl daemon-reload' to reload units.

So i added systemctl daemon-reload.
parent 54c456ec
...@@ -6,6 +6,7 @@ set -e ...@@ -6,6 +6,7 @@ set -e
startGrafana() { startGrafana() {
if [ -x /bin/systemctl ] ; then if [ -x /bin/systemctl ] ; then
/bin/systemctl daemon-reload
/bin/systemctl start grafana-server.service /bin/systemctl start grafana-server.service
elif [ -x /etc/init.d/grafana-server ] ; then elif [ -x /etc/init.d/grafana-server ] ; then
/etc/init.d/grafana-server start /etc/init.d/grafana-server start
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment