PREUN
/bin/sh
/usr/share/rpm-helper/del-service webmin $1 webmin
POSTIN
/bin/sh
if [ "$1" != 0 ]; then
service webmin status >/dev/null 2>/dev/null && need_restart=1
service webmin stop >/dev/null 2>/dev/null || :
else
[[ -e /etc/cron.allow ]] && if [ "x`grep root /etc/cron.allow`" == "x" ] ; then
echo root >> /etc/cron.allow
fi
fi
/usr/share/webmin/postinstall.sh
/usr/bin/systemd-tmpfiles --create webmin.conf
/usr/share/rpm-helper/add-service webmin $1 webmin
[[ -n $need_restart ]] && service webmin start >/dev/null 2>/dev/null || :
POSTUN
/bin/sh
if [ "$1" = 0 ]; then
rm -rf /etc/webmin /var/webmin /var/lib/webmin /var/log/webmin
fi