#!/bin/sh # postinst script for proftpd-cn # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package # case "$1" in configure|reconfigure) # continue below ;; *) exit 0 ;; esac # Import CN toolsa . /usr/share/carnet-tools/functions.sh CONF=/etc/php5/mods-available/apc.ini if [ -e "$CONF" ]; then echo "CN: Enabling CARNet APC modifications" cp -a "$CONF" "$CONF.$$" cp-update --comment ';' php-apc-cn "$CONF.$$" </dev/null; then echo "CN: Reloading Apache..." invoke-rc.d apache2 force-reload || true else echo "CN: Your Apache2 configuration is either broken or nonexistant" fi # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0