Sophie

Sophie

distrib > Mandriva > 7.1 > i586 > by-pkgid > 4b38153d4f05f4da8085b946cedd7fbd > scriptlet

webmin-0.970-1.3mdk.noarch.rpm

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