Sophie

Sophie

distrib > Mageia > 6 > armv5tl > media > core-updates > by-pkgid > 81e645886863878b1814344e88daebd5 > scriptlet

gnupg2-2.1.21-3.mga6.armv5tl.rpm

PREUN

/bin/sh
if [ "$1" = "0" ]; then if [[ -f /usr/share/info/gnupg.info.xz ]]; then /sbin/install-info /usr/share/info/gnupg.info.xz --dir=/usr/share/info/dir --remove ; fi; fi 


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

POSTIN

/bin/sh
if [[ -f /usr/share/info/gnupg.info.xz ]]; then /sbin/install-info /usr/share/info/gnupg.info.xz --dir=/usr/share/info/dir; fi 

#systemd_user_post does only preset, we need it enabled such that at
#all login, the service gets started
if [ $1 -eq 1 ]; then
   systemctl --user --global enable gpg-agent.service
fi

POSTUN

/bin/sh

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