Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > 2f940f6f57f8b4349f9c1c823610a735 > scriptlet

webmin-1.550-0.2mdv2010.2.noarch.rpm

PREUN

/bin/sh
/usr/share/rpm-helper/del-service webmin $1 webmin

POSTIN

/bin/sh
/usr/share/rpm-helper/create-ssl-certificate webmin $1 miniserv  -b 
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/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/run/webmin /var/log/webmin
fi