diff options
Diffstat (limited to 'debian/hyperv-daemons.preinst')
-rw-r--r-- | debian/hyperv-daemons.preinst | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/debian/hyperv-daemons.preinst b/debian/hyperv-daemons.preinst index 5810d29468..fc13e5116c 100644 --- a/debian/hyperv-daemons.preinst +++ b/debian/hyperv-daemons.preinst @@ -2,7 +2,11 @@ set -e if [ "$1" = "upgrade" ]; then - for i in fcopy kvp vss; do + services='kvp vss' + if dpkg --compare-versions "$2" lt 6.10~rc6-1~exp1; then + services="fcopy $services" + fi + for i in $services; do if [ -d /run/systemd/system ]; then systemctl stop hyperv-daemons.hv-$i-daemon.service 2>/dev/null || true fi |