X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fprerm;h=70b8c889f6c078361b730daed5e649efbd7b16d5;hb=0a82ca4af4f5e0f10efa5ceb7b00164687bdb2d1;hp=950fc167bd0ad9f87c52ce76c98e00a53a9d75ef;hpb=94d4b267e3c2220f29d665a71af4be63eeb5ee10;p=squirrelmail-change-pass-cn.git diff --git a/debian/prerm b/debian/prerm index 950fc16..70b8c88 100644 --- a/debian/prerm +++ b/debian/prerm @@ -11,7 +11,6 @@ case "$1" in PKG="squirrelmail-change-pass-cn" SQCONFDIR="/etc/squirrelmail" SQCONF="$SQCONFDIR/config.php" - CPCONF="/usr/share/squirrelmail/plugins/change_pass/config.php" need_restart=0 # Remove CARNet configuration from /etc/hosts.allow and @@ -28,21 +27,9 @@ case "$1" in # configuration. # if egrep -q '^\$plugins\[[0-9]+\][\ ]*=[\ ]*'\''change_pass'\' "$SQCONF"; then - cp_echo "CN: Disabling SquirrelMail change_pass plugin in $SQCONF" /usr/sbin/squirrelmail-configure --remove-plugin change_pass fi - # Backup change_pass configuration file (if any) and notify user. - # - if [ -f "$CPCONF" ]; then - cp_echo "CN: Doing backup for $CPCONF" - cp_backup_conffile -d "/var/backups/$PKG" -p $CPCONF - cp_echo "CN: Backup is located in directory: /var/backups/$PKG/" - rm -f $CPCONF - rm -f $CPCONF.cn-old - cp_echo "CN: Configuration for SquirrelMail change_pass plugin has been removed." - fi - # Remove poppassd service from xinetd. # if [ -f /etc/xinetd.d/poppassd ]; then @@ -85,4 +72,6 @@ case "$1" in ;; esac +#DEBHELPER# + exit 0