mirror of https://github.com/grafana/grafana.git
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.
This commit is contained in:
parent
54c456ec5b
commit
bccdd7cad1
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue