From ca39e86212393d358673675586fe95964d9920ae Mon Sep 17 00:00:00 2001 From: AM <3014726-akshaycodes@users.noreply.gitlab.com> Date: Fri, 9 Apr 2021 11:50:38 +0000 Subject: [PATCH] Update install_hooks.sh --- install_hooks.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install_hooks.sh b/install_hooks.sh index 7dff080..793a839 100755 --- a/install_hooks.sh +++ b/install_hooks.sh @@ -1,4 +1,9 @@ #!/bin/bash + +if test -e /etc/libvirt/ && ! test -e /etc/libvirt/hooks; +then + mkdir -p /etc/libvirt/hooks; +fi if test -e /etc/libvirt/hooks/qemu; then mv /etc/libvirt/hooks/qemu /etc/libvirt/hooks/qemu_last_backup