PKGBUILDs/community/libvirt/libvirt.install
2020-06-02 13:53:24 +00:00

7 lines
201 B
Text

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
}