open-nomad/.release/linux/postrm

13 lines
232 B
Bash

#!/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
exit 0