dist/spec: correct metrics postun to reference systemctl by absolute path.

This commit is contained in:
Jimmy Berry 2017-11-08 17:23:30 -06:00
parent d0c298246e
commit dc74b8d0be

View File

@ -351,7 +351,7 @@ exit 0
%postun metrics
%systemd_postun
# If grafana-server.service is enabled then restart it to load new dashboards.
if [ -x /usr/bin/systemctl ] && systemctl is-enabled grafana-server ; then
if [ -x /usr/bin/systemctl ] && /usr/bin/systemctl is-enabled grafana-server ; then
/usr/bin/systemctl try-restart --no-block grafana-server
fi