mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 14:24:39 +00:00
15 lines
234 B
Bash
15 lines
234 B
Bash
#!/bin/bash
|
|
|
|
if [ "$1" = "purge" ]
|
|
then
|
|
userdel consul
|
|
fi
|
|
|
|
if [ "$1" == "upgrade" ] && [ -d /run/systemd/system ]; then
|
|
systemctl --system daemon-reload >/dev/null || true
|
|
systemctl restart consul >/dev/null || true
|
|
fi
|
|
|
|
exit 0
|
|
|