2
0
mirror of https://github.com/status-im/consul.git synced 2025-02-03 09:24:25 +00:00

20 lines
339 B
Plaintext
Raw Normal View History

#!/bin/bash
if [ -d "/run/systemd/system" ]; then
systemctl --system daemon-reload >/dev/null || :
fi
case "$1" in
purge | 0)
userdel consul
;;
upgrade | [1-9]*)
if [ -d "/run/systemd/system" ]; then
systemctl try-restart consul.service >/dev/null || :
fi
;;
esac
exit 0