Sophie

Sophie

distrib > Mageia > 8 > i586 > media > core-release > by-pkgid > 1b4f3a0e84a9fe867434abd96ef722f0 > scriptlet

hostname-3.23-2.mga8.i586.rpm

PREUN

/bin/sh

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

# Needs to work even if systemd is not available:
:

# NOTE: Nothing to do for upgrade (in postun), nis-domainname.service is oneshot.

POSTIN

/bin/sh

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

# Needs to work even if systemd is not available:
: