2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-06-16 16:40:51 +00:00

Enable HTTPS download of image

If some software has augmented the xCAT boot process for https,
allow that to be recognized.
This commit is contained in:
Jarrod Johnson
2020-11-05 14:16:41 -05:00
parent 4f0a510668
commit 751bce2480
3 changed files with 3 additions and 3 deletions
@@ -27,7 +27,7 @@ if [ "$NODESTATUS" != "0" ]; then
fi
if [ ! -z "$imgurl" ]; then
if [ xhttp = x${imgurl%%:*} ]; then
if [ xhttp = x${imgurl%%:*} ] || [ xhttps = x${imgurl%%:*} ]; then
NFS=0
FILENAME=${imgurl##*/}
while [ ! -r "$FILENAME" ]; do
@@ -33,7 +33,7 @@ fi
imgurl="$(getarg imgurl=)";
if [ ! -z "$imgurl" ]; then
if [ xhttp = x${imgurl%%:*} ]; then
if [ xhttp = x${imgurl%%:*} ] || [ xhttps = x${imgurl%%:*} ]; then
logger $SYSLOGHOST -t $log_label -p local4.info "Downloading rootfs image from $imgurl..."
NFS=0
FILENAME=${imgurl##*/}
@@ -33,7 +33,7 @@ fi
imgurl="$(getarg imgurl=)";
if [ ! -z "$imgurl" ]; then
if [ xhttp = x${imgurl%%:*} ]; then
if [ xhttp = x${imgurl%%:*} ] || [ xhttps = x${imgurl%%:*} ]; then
logger $SYSLOGHOST -t $log_label -p local4.info "Downloading rootfs image from $imgurl..."
NFS=0
FILENAME=${imgurl##*/}