Sophie

Sophie

distrib > Mageia > 8 > armv7hl > media > core-updates_testing > by-pkgid > 364deec689c7682e597a22e63ebce647 > scriptlet

libreswan-4.12-1.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 ipsec.service || : 
fi

POSTIN

/bin/sh

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


 
[ -x /usr/lib/systemd/systemd-sysctl ] && /usr/lib/systemd/systemd-sysctl 50-libreswan.conf || :

POSTUN

/bin/sh

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