mirror of
https://github.com/nexus-stc/hyperboria
synced 2024-12-24 02:25:48 +01:00
8472f27ec5
GitOrigin-RevId: ddf02e70d2827c048db49b687ebbcdcc67807ca6
31 lines
450 B
Django/Jinja
31 lines
450 B
Django/Jinja
#!/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
|