diff --git a/mediabots_Linux-to-Windows.sh b/mediabots_Linux-to-Windows.sh index 2c2e9f9..837d231 100644 --- a/mediabots_Linux-to-Windows.sh +++ b/mediabots_Linux-to-Windows.sh @@ -35,7 +35,7 @@ sudo mkdir /mediabots /floppy /virtio link1_status=$(curl -Is http://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://ia601506.us.archive.org/4/items/WS2012R2/WS2012R2.ISO | grep HTTP | cut -f2 -d" ") #sudo wget -P /mediabots https://archive.org/download/WS2012R2/WS2012R2.ISO # Windows Server 2012 R2 -if [ $link1_status = "200" ] ; then +if [ $link1_status = "200" -o $link1_status = "301" -o $link1_status = "302" ] ; then sudo wget -O /mediabots/WS2012R2.ISO http://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 elif [ $link2_status = "200" -o $link2_status = "301" -o $link2_status = "302" ] ; then sudo wget -P /mediabots https://ia601506.us.archive.org/4/items/WS2012R2/WS2012R2.ISO