packaging: restart nomad service after package update (#13773)

This commit is contained in:
Kyle Penfound 2022-07-15 17:20:04 -04:00 committed by GitHub
parent 05cd91155d
commit 8157f442c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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