# more logging, other config changes and use pam
sed -i -e 's:^theme=.*$:theme=authentic-theme:' "${PKGDIR}"/etc/usermin/config
echo -e 'logfiles=1\nlogfullfiles=1\ngotoone=1\nnoremember=1\nshowlogin=1' >> "${PKGDIR}"/etc/usermin/config
sed -i -e 's:miniserv.pid:usermin.pid:g' -e 's:WEBMIN_VAR:/run:g' -e 's:WEBMIN_KILLCMD:/usr/bin/kill:g' -e 's:WEBMIN_CONFIG:/etc/usermin:g' -e 's:WEBMIN_LIBDIR:/opt/usermin:g' "${PKGDIR}"/opt/usermin/usermin-systemd
sed -i -e 's:^pidfile=.*$:pidfile=/run/usermin.pid:' -e 's:^preroot=.*$:preroot=authentic-theme:' "${PKGDIR}"/etc/usermin/miniserv.conf
echo -e 'syslog=1\npam_only=0\npam_end=1\npam_conv=\nno_pam=1\nlogouttime=10\nuser_mapping_reverse=1' >> "${PKGDIR}"/etc/usermin/miniserv.conf
