PREUN
/bin/sh
if [ $1 = 0 ]; then service webmin stop >/dev/null 2>/dev/null || :; /sbin/chkconfig --del webmin; fi;
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
fi
/usr/share/webmin/postinstall.sh
if [ $1 = 1 ]; then /sbin/chkconfig --add webmin; else if [ -f /var/lock/subsys/webmin ]; then service webmin restart > /dev/null 2>/dev/null || : ; fi; fi;
[[ -n $need_restart ]] && service webmin start >/dev/null 2>/dev/null || :
POSTUN
/bin/sh
if [ "$1" = 0 ]; then
grep root=/usr/share/webmin /etc/webmin/miniserv.conf >/dev/null 2>&1
rm -rf /etc/webmin /var/webmin /var/lib/webmin /var/run/webmin /var/log/webmin
fi