X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=squirrelmail-change-pass-cn.git;a=blobdiff_plain;f=debian%2Fpostinst;fp=debian%2Fpostinst;h=3717821a8c77aab6f9ae8f618c4a4d8faa2aa9e4;hp=83198930629762c28d59f4e0c451454b9e938a19;hb=c542531c967ceef31b70ae910c6d882d54e57687;hpb=0a82ca4af4f5e0f10efa5ceb7b00164687bdb2d1 diff --git a/debian/postinst b/debian/postinst index 8319893..3717821 100644 --- a/debian/postinst +++ b/debian/postinst @@ -50,60 +50,6 @@ if [ $done_backup -eq 1 ]; then fi -# Remove change_pass configuration files if earlier version is -# older than 3.0-1. -# -if [ "$2" ] && dpkg --compare-versions $2 lt 3.0-1; then - - cp_echo "CN: This version of change_pass plugin contains major changes." - for cpconf_file in $SQCPCONF $CPCONF; do - if [ -f "$cpconf_file" ] || [ -L "$cpconf_file" ]; then - rm -f $cpconf_file - cp_echo "CN: Removed old $cpconf_file" - fi - done -fi - - -# Check for change_pass configuration files and notify user about -# minimum password length configuration. -# -if egrep -q '^\$plugins\[[0-9]+\][\ ]*=[\ ]*'\''change_pass'\' "$SQCONF"; then - /usr/sbin/squirrelmail-configure --remove-plugin change_pass -fi - -if [ ! -f "$SQCPCONF" ]; then - - if [ -f "$CPCONF" ]; then - cp -f "$CPCONF" "$SQCPCONF" - cp_echo "CN: $CPCONF copied to $SQCPCONF" - else - - # Configuration file does not exist. - cp_echo "CN: Generating new file $SQCPCONF" - cat > "$SQCPCONF" <