#!/bin/sh set -e case "$1" in install|upgrade) old_version=$2 if [ -e '/usr/sbin/pve-firewall' ]; then if dpkg --compare-versions "$old_version" lt '1.0-16' ; then echo "Detected old pve-firewall version - using stop/start to restart" /usr/sbin/pve-firewall stop fi fi ;; abort-upgrade) ;; *) echo "preinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0