Ver Fonte

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.
rrickardt há 9 anos atrás
pai
commit
bccdd7cad1
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      packaging/rpm/control/postinst

+ 1 - 0
packaging/rpm/control/postinst

@@ -6,6 +6,7 @@ set -e
 
 startGrafana() {
   if [ -x /bin/systemctl ] ; then
+    /bin/systemctl daemon-reload
 		/bin/systemctl start grafana-server.service
 	elif [ -x /etc/init.d/grafana-server ] ; then
 		/etc/init.d/grafana-server start