From efc2c7e07d07504ae3bf7214c4e522a5e6233895 Mon Sep 17 00:00:00 2001 From: toyotavario <100457184+toyotavario@users.noreply.github.com> Date: Tue, 1 Mar 2022 13:43:39 +0700 Subject: [PATCH] Update win2012.sh --- win2012.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/win2012.sh b/win2012.sh index f8a9e73..1526405 100644 --- a/win2012.sh +++ b/win2012.sh @@ -32,13 +32,13 @@ fi sudo ln -s /usr/bin/genisoimage /usr/bin/mkisofs # Downloading resources sudo mkdir /mediabots /floppy /virtio -link1_status=$(curl -Is https://download.microsoft.com/download/6/2/A/62A76ABB-9990-4EFC-A4FE-C7D698DAEB96/9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_EN-US-IR3_SSS_X64FREE_EN-US_DV9.ISO | grep HTTP | cut -f2 -d" " | head -1) -link2_status=$(curl -Is https://download.microsoft.com/download/6/2/A/62A76ABB-9990-4EFC-A4FE-C7D698DAEB96/9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_EN-US-IR3_SSS_X64FREE_EN-US_DV9.ISO | grep HTTP | cut -f2 -d" ") +link1_status=$(curl -Is https://www.dropbox.com/s/c2qfhk27cah3rxf/Windows_Server_2012_virtio_082284640547.iso | grep HTTP | cut -f2 -d" " | head -1) +link2_status=$(curl -Is https://www.dropbox.com/s/c2qfhk27cah3rxf/Windows_Server_2012_virtio_082284640547.iso | grep HTTP | cut -f2 -d" ") #sudo wget -P /mediabots https://ia601506.us.archive.org/4/items/WS2012R2/WS2012R2.ISO # Windows Server 2012 R2 if [ $link1_status = "200" ] ; then - sudo wget -O /mediabots/WS2012R2.ISO https://download.microsoft.com/download/6/2/A/62A76ABB-9990-4EFC-A4FE-C7D698DAEB96/9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_EN-US-IR3_SSS_X64FREE_EN-US_DV9.ISO + sudo wget -O /mediabots/WS2012R2.ISO https://www.dropbox.com/s/c2qfhk27cah3rxf/Windows_Server_2012_virtio_082284640547.iso elif [ $link2_status = "200" -o $link2_status = "301" -o $link2_status = "302" ] ; then - sudo wget -P /mediabots https://download.microsoft.com/download/6/2/A/62A76ABB-9990-4EFC-A4FE-C7D698DAEB96/9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_EN-US-IR3_SSS_X64FREE_EN-US_DV9.ISO + sudo wget -P /mediabots https://www.dropbox.com/s/c2qfhk27cah3rxf/Windows_Server_2012_virtio_082284640547.iso else echo -e "${RED}[Error]${NC} ${YELLOW}Sorry! None of Windows OS image urls are available , please report about this issue on Github page : ${NC}https://github.com/mediabots/Linux-to-Windows-with-QEMU" echo "Exiting.."