From 18a276daf5f52f108be05999d6ef905de5d49b63 Mon Sep 17 00:00:00 2001 From: DareFox Date: Fri, 9 Dec 2022 17:50:31 +0300 Subject: [PATCH 1/2] Don't move files from repo, but copy them --- libvirt_configuration.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libvirt_configuration.sh b/libvirt_configuration.sh index c5a8fdd..b797a75 100644 --- a/libvirt_configuration.sh +++ b/libvirt_configuration.sh @@ -26,8 +26,8 @@ gpasswd -M $USERNAME kvm gpasswd -M $USERNAME libvirt sleep 2s clear -mv libvirtd.conf /etc/libvirt -echo "mv libvirtd.conf /etc/libvirt" +cp libvirtd.conf /etc/libvirt +echo "cp libvirtd.conf /etc/libvirt" sleep 1s clear echo "libvirt has been successfully configured!" @@ -42,8 +42,8 @@ clear echo "mv /etc/libvirt/qemu.conf /etc/libvirt/qemu.conf.old" mv /etc/libvirt/qemu.conf /etc/libvirt/qemu.conf.old sleep 1s -echo "mv qemu.conf /etc/libvirt" -mv qemu.conf /etc/libvirt +echo "cp qemu.conf /etc/libvirt" +cp qemu.conf /etc/libvirt sleep 1s clear systemctl restart libvirtd From 5057830d75401afb28e3725ae2cbb9a7f8625286 Mon Sep 17 00:00:00 2001 From: DareFox Date: Fri, 9 Dec 2022 17:51:25 +0300 Subject: [PATCH 2/2] Fix printing order of commands --- libvirt_configuration.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvirt_configuration.sh b/libvirt_configuration.sh index b797a75..427b118 100644 --- a/libvirt_configuration.sh +++ b/libvirt_configuration.sh @@ -26,8 +26,8 @@ gpasswd -M $USERNAME kvm gpasswd -M $USERNAME libvirt sleep 2s clear -cp libvirtd.conf /etc/libvirt echo "cp libvirtd.conf /etc/libvirt" +cp libvirtd.conf /etc/libvirt sleep 1s clear echo "libvirt has been successfully configured!"