#! /bin/sh set -e action="$1" version="$2" if [ "$action" = upgrade ] then if [ -L /usr/share/doc/snmpd ]; then rm -f /usr/share/doc/snmpd fi fi # Automatically added by dh_pycentral case "$1" in install|upgrade) mkdir -p /var/lib/pycentral echo '# the presence of this file allows calling pkgremove on upgrade' \ > /var/lib/pycentral/snmpd.pkgremove esac # End automatically added section exit 0