Debian Codegraph @

debian/hyperv-daemons.preinst

raw
1 #!/bin/sh
2 set -e
3
4 if [ "$1" = "upgrade" ]; then
5 services='kvp vss'
6 if dpkg --compare-versions "$2" lt 6.10~rc6-1~exp1; then
7 services="fcopy $services"
8 fi
9 for i in $services; do
10 if [ -d /run/systemd/system ]; then
11 systemctl stop hyperv-daemons.hv-$i-daemon.service 2>/dev/null || true
12 fi
13 deb-systemd-helper purge hyperv-daemons.hv-$i-daemon.service || true
14 invoke-rc.d --skip-systemd-native hyperv-daemons.hv-$i-daemon stop || true
15 update-rc.d hyperv-daemons.hv-$i-daemon remove || true
16 done
17 fi
18
19 #DEBHELPER#
20
21 exit 0