PKGBUILDs/extra/qemu/qemu-guest-agent.install
2021-10-14 19:31:49 +00:00

9 lines
296 B
Text

post_upgrade() {
if (( $(vercmp "$2" '5.1.0-2') < 0 )); then
printf "NOTE: The qemu-ga.service has been renamed to qemu-guest-agent.service\n"
fi
if systemctl is-enabled -q qemu-ga.service; then
systemctl disable qemu-ga.service
systemctl enable qemu-guest-agent.service
fi
}