open-nomad/.release/linux/postrm

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
232 B
Plaintext
Raw Normal View History

2022-04-06 15:47:02 +00:00
#!/bin/bash
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
2022-04-06 15:47:02 +00:00
exit 0