Sophie

Sophie

distrib > Mageia > 8 > i586 > media > core-release > by-pkgid > 16f243606b15c964ec841d9e9f0c9e01 > scriptlet

fwupd-1.5.5-1.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 fwupd.service || : 
fi

POSTIN

/bin/sh

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


# change vendor-installed remotes to use the default keyring type
for fn in /etc/fwupd/remotes.d/*.conf;
    do sed -i 's/Keyring=gpg/#Keyring=pkcs/g' "$fn";
done

POSTUN

/bin/sh

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


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