Merge pull request #204 from fbartels/existing-vm

Add option to use a preexisting windows installation
This commit is contained in:
Oskar Manhart
2024-08-08 21:38:54 +02:00
committed by GitHub
3 changed files with 5 additions and 0 deletions

View File

@@ -348,6 +348,7 @@ RDP_IP=""
# - 'docker'
# - 'podman'
# - 'libvirt'
# - 'manual'
WAFLAVOR="docker"
# [DISPLAY SCALING FACTOR]

View File

@@ -675,6 +675,8 @@ if [ "$WAFLAVOR" = "docker" ] || [ "$WAFLAVOR" = "podman" ]; then
elif [ "$WAFLAVOR" = "libvirt" ]; then
waCheckGroupMembership
waCheckVMRunning
elif [ "$WAFLAVOR" = "manual" ]; then
waCheckPortOpen
else
waThrowExit "$EC_INVALID_FLAVOR"
fi

View File

@@ -1493,6 +1493,8 @@ function waInstall() {
# Check if the Windows VM is powered on.
waCheckVMRunning
elif [ "$WAFLAVOR" = "manual" ]; then
waCheckPortOpen
else
# Display the error type.
echo -e "${ERROR_TEXT}ERROR:${CLEAR_TEXT} ${BOLD_TEXT}INVALID WINAPPS BACKEND.${CLEAR_TEXT}"