- if ! egrep -q '^poppassd:' /etc/hosts.allow; then
- echo "poppassd: 127.0.0.1" | cp-update "$PKG" /etc/hosts.allow
- fi
+# Configure SquirrelMail change_pass plugin - using defaults,
+# no configuration files.
+#
+if [ "$2" ] && dpkg --compare-versions $2 lt $VERSION; then
+ cp_echo "CN: This version of change_pass plugin contains major changes."
+ cp_echo "CN: For detailed description, see documentation in /usr/share/doc/$PKG/."
+fi
+if [ -f "$SQCPCONF" ]; then
+ mv -f "$SQCPCONF" "$SQCPCONF.cn-old"
+ cp_echo "CN: Old $SQCPCONF disabled and renamed to $SQCPCONF.cn-old."
+fi
+if [ -f "$CPCONF" ]; then
+ mv -f "$CPCONF" "$CPCONF.cn-old"
+ cp_echo "CN: Old $CPCONF disabled and renamed to $CPCONF.cn-old."