packaging: restart nomad service after package update (#13773)
This commit is contained in:
parent
05cd91155d
commit
8157f442c3
|
@ -4,4 +4,9 @@ if [ "$1" = "purge" ]; then
|
|||
userdel nomad
|
||||
fi
|
||||
|
||||
if [ "$1" == "upgrade" ] && [ -d /run/systemd/system ]; then
|
||||
systemctl --system daemon-reload >/dev/null || true
|
||||
systemctl restart nomad >/dev/null || true
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Reference in New Issue