Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > aa4da72e0d842e5823a2011999d06908 > scriptlet

libreswan-3.32-1.1.mga7.x86_64.rpm

PREUN

/bin/sh

if [ $1 -eq 0 ] ; then 
        # Package removal, not upgrade 
        systemctl --no-reload disable --now ipsec.service >/dev/null 2>&1 || : 
fi

POSTIN

/bin/sh

if [ $1 -eq 1 ] ; then 
        # Initial installation 
        systemctl --no-reload preset ipsec.service >/dev/null 2>&1 || : 
fi

POSTUN

/bin/sh

if [ $1 -ge 1 ] ; then 
        # Package upgrade, not uninstall 
        systemctl try-restart ipsec.service >/dev/null 2>&1 || : 
fi