Sophie

Sophie

distrib > Mageia > 8 > i586 > media > core-release > by-pkgid > 71f33b478124ed5b35ca8c673a22fba1 > scriptlet

webmin-1.970-1.mga8.noarch.rpm

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