4 Commits

Author SHA1 Message Date
Dustin B
b01a4c50ce Update xoce-import.sh
Testing with another host
2020-07-29 12:43:48 -04:00
Dustin B
2846b2c7cc Update xoce-import.sh
adding `--keepalive-time 5` to send a tcp notice keeping the connection active
2020-07-26 17:03:49 -04:00
Dustin B
640ba95d1b Update xoce-import.sh 2020-07-26 16:54:03 -04:00
Dustin B
8c021409fd Update xoce-import.sh
continue at random offset due to timeout
2020-07-26 16:48:38 -04:00

View File

@@ -1,6 +1,6 @@
#!/bin/bash
XOCE_URL=https://nc.nl.tab.digital/s/5tKYF9AyLjowm3E/download
XOCE_URL=https://cloud.wellston.biz/index.php/s/54tPkkkTcxQPnDs/download
# Welcome message
printf "\n\033[1mWelcome to the XOCE auto-deploy script!\033[0m\n\n"
@@ -49,7 +49,7 @@ uuid=$(xe vm-import url="$XOCE_URL" 2> /dev/null)
import=$?
if [ $import -ne 0 ]
then
uuid=$(curl "$XOCE_URL" | xe vm-import filename=/dev/stdin 2>&1)
uuid=$(curl "$XOCE_URL" -L -O -c - --keepalive-time 5 | xe vm-import filename=/dev/stdin 2>&1)
fi
# If it fails again (for any reason), we stop the script