瀏覽代碼

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 9 年之前
父節點
當前提交
bccdd7cad1
共有 1 個文件被更改,包括 1 次插入0 次删除
  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