diff --git a/scripts/deploy-distro.sh b/scripts/deploy-distro.sh index 5ca612c..f0f8d9f 100755 --- a/scripts/deploy-distro.sh +++ b/scripts/deploy-distro.sh @@ -54,6 +54,15 @@ else exit 1 ;; esac + + # Conditional variable assignment based on URI + if [[ "$uri" == "qemu:///system" ]]; then + disk_path="/var/lib/libvirt/images/" + network_type="default" + elif [[ "$uri" == "qemu:///session" ]]; then + disk_path="$HOME/.local/share/libvirt/images/" + network_type="user" + fi fi # Display the selected option (optional)