Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > main-testing > by-pkgid > 3bf8d92b06237ca0d475784fe8c53fce > scriptlet

webmin-1.590-1.1mdv2010.1.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