Sophie

Sophie

distrib > Mageia > 8 > armv7hl > media > core-updates_testing > by-pkgid > 3c9a83f3d763e90cd17264ee8100a085 > scriptlet

qemu-guest-agent-5.2.0-4.3.mga8.armv7hl.rpm

PREUN

/bin/sh

 
if [ $1 -eq 0 ] && [ -x /usr/bin/systemctl ]; then 
        # Package removal, not upgrade 
        /usr/bin/systemctl --no-reload disable --now qemu-guest-agent.service || : 
fi

POSTIN

/bin/sh

 
if [ $1 -eq 1 ] && [ -x /usr/bin/systemctl ]; then 
        # Initial installation 
        /usr/bin/systemctl --no-reload preset qemu-guest-agent.service || : 
fi

POSTUN

/bin/sh

 
if [ $1 -ge 1 ] && [ -x /usr/bin/systemctl ]; then 
        # Package upgrade, not uninstall 
        /usr/bin/systemctl try-restart qemu-guest-agent.service || : 
fi