PKGBUILDs/community/libvirt/libvirt.install

8 lines
201 B
Text
Raw Normal View History

2020-06-02 13:53:24 +00:00
post_install() {
if [[ -f /etc/libvirt/qemu/networks/default.xml ]]
then
UUID=$(/usr/bin/uuidgen)
sed -i "s|<uuid></uuid>|<uuid>$UUID</uuid>|" /etc/libvirt/qemu/networks/default.xml
fi
}