mirror of
https://github.com/nexus-stc/hyperboria
synced 2024-12-18 23:57:47 +01:00
31 lines
450 B
Plaintext
31 lines
450 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
|
||
|
|
||
|
set -e
|
||
|
|
||
|
|
||
|
case "$1" in
|
||
|
upgrade|deconfigure)
|
||
|
{% for line in services %}
|
||
|
service {{ line }} stop || true
|
||
|
{%- endfor %}
|
||
|
;;
|
||
|
remove)
|
||
|
{% for line in services %}
|
||
|
service {{ line }} stop || true
|
||
|
systemctl disable {{ line }} || true
|
||
|
{%- endfor %}
|
||
|
;;
|
||
|
|
||
|
failed-upgrade)
|
||
|
;;
|
||
|
|
||
|
*)
|
||
|
echo "prerm called with unknown argument \`$1'" >&2
|
||
|
exit 1
|
||
|
;;
|
||
|
esac
|
||
|
|
||
|
|
||
|
exit 0
|