#!/bin/sh

if [ -f /etc/passwdqc.conf ]; then
    cp --preserve=mode,ownership /etc/passwdqc.conf /etc/passwdqc.conf.ltspsave
    sed -i -r \
	-e 's/^min=.*$/min=1,1,1,1,1/' \
	-e 's/^(passphrase=).*$/\11/' \
	-e 's/^(match=).*$/\10/' \
	/etc/passwdqc.conf
fi
