mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 09:52:12 +08:00
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:

committed by
Torkel Ödegaard

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
|
||||
|
Reference in New Issue
Block a user