Sophie

Sophie

distrib > Mageia > cauldron > i586 > by-pkgid > e2add767fd96c82add6c74fdc977e7b6 > scriptlet

fwupd-1.8.9-2.mga9.i586.rpm

PREUN

/bin/sh

 
if [ $1 -eq 0 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then 
    # Package removal, not upgrade 
    /usr/lib/systemd/systemd-update-helper remove-system-units fwupd.service || : 
fi

POSTIN

/bin/sh

 
if [ $1 -eq 1 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then 
    # Initial installation 
    /usr/lib/systemd/systemd-update-helper install-system-units fwupd.service || : 
fi 


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

POSTUN

/bin/sh

 
if [ $1 -ge 1 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then 
    # Package upgrade, not uninstall 
    /usr/lib/systemd/systemd-update-helper mark-restart-system-units fwupd.service || : 
fi