Sophie

Sophie

distrib > Mageia > 8 > armv7hl > by-pkgid > c2e540caf4719566518a89e57c40399d > scriptlet

webmin-1.998-1.mga8.noarch.rpm

PRETRANS

/bin/sh
if [ -d /usr/share/webmin/blue-theme ]; then
  rm -rf /usr/share/webmin/blue-theme
fi

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