]> git.proxmox.com Git - pmg-api.git/blame - debian/prerm
fix schema definition
[pmg-api.git] / debian / prerm
CommitLineData
0854fb22
DM
1#!/bin/sh
2
3set -e
4
5case "$1" in
ebe7f62b 6 remove)
ebe7f62b
DM
7 ;;
8
9 upgrade|deconfigure)
0854fb22
DM
10 ;;
11
12 failed-upgrade)
13 ;;
14
15 *)
16 echo "prerm called with unknown argument \`$1'" >&2
17 exit 1
18 ;;
19esac
20
2305fb86
DM
21if [ -d /run/systemd/system ] && [ "$1" = remove ]; then
22 deb-systemd-invoke stop pmgproxy.service pmgdaemon.service >/dev/null
23fi
24
0854fb22
DM
25# dh_installdeb will replace this with shell code automatically
26# generated by other debhelper scripts.
27
28#DEBHELPER#
29
30exit 0