rpm: fix misleading systemd warnings during upgrade

systemctl preset output lengthy warning when trying to operate on
non-existing unit. This preset action is meant to disable unit, so it's
even better it doesn't exists.
This commit is contained in:
Marek Marczykowski-Górecki 2016-07-13 22:13:17 +02:00
parent f2257e1e3b
commit 4996dd7609
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -600,8 +600,12 @@ else
done done
/bin/systemctl --no-reload preset qubes-update-check.timer /bin/systemctl --no-reload preset qubes-update-check.timer
# Upgrade path - now qubes-iptables is used instead # Upgrade path - now qubes-iptables is used instead
/bin/systemctl --no-reload preset iptables.service if [ -f /lib/systemd/system/iptables.service ]; then
/bin/systemctl --no-reload preset ip6tables.service /bin/systemctl --no-reload preset iptables.service
fi
if [ -f /lib/systemd/system/ip6tables.service ]; then
/bin/systemctl --no-reload preset ip6tables.service
fi
fi fi
# Set default "runlevel" # Set default "runlevel"