#!/bin/sh set -e # summary of how this script can be called: # * `install' # * `install' # * `upgrade' # * `abort-upgrade' # [ -f /etc/logrotate.d/proftpd-basic ] && \ mv -f /etc/logrotate.d/proftpd-basic /etc/logrotate.d/proftpd-core if [ "$1" = "upgrade" ]; then invoke-rc.d --skip-systemd-native proftpd stop >/dev/null 2>&1 || true fi # Automatically added by dh_installsystemd/13.6ubuntu1 if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = upgrade ] && [ -d /run/systemd/system ] ; then deb-systemd-invoke stop 'proftpd.socket' >/dev/null || true fi # End automatically added section # Automatically added by dh_installsystemd/13.6ubuntu1 if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = upgrade ] && [ -d /run/systemd/system ] ; then deb-systemd-invoke stop 'proftpd.service' >/dev/null || true fi # End automatically added section