Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > f8e46cab59322500964d65a16bf95d47 > scriptlet

strongswan-5.1.0-2.fc18.x86_64.rpm

PREUN

/bin/sh

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

POSTIN

/bin/sh
/sbin/ldconfig

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

POSTUN

/bin/sh
/sbin/ldconfig

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