Skip to content
This repository was archived by the owner on Nov 22, 2025. It is now read-only.

Commit 27c14b5

Browse files
committed
fix: update CentOS mirror URLs to use secure HTTPS links
1 parent f9e304a commit 27c14b5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ cmdline() {
110110
*centos*)
111111
CENTOS_VERSION=$(echo "${NAME}" | awk -F '-' '{ print $2 }')
112112
export CENTOS_VERSION
113-
CENTOS_TAG=$(curl -s "ftp://ftp.cvut.cz/centos/${CENTOS_VERSION}/isos/x86_64/sha256sum.txt" | sed -n 's/.*-\(..\)\(..\)\.iso/\1\2/p' | head -1)
113+
CENTOS_TAG=$(curl -s "https://mirror.fcix.net/centos-vault/centos/${CENTOS_VERSION}/isos/x86_64/sha256sum.txt" | sed -n 's/.*-\(..\)\(..\)\.iso/\1\2/p' | head -1)
114114
export CENTOS_TAG
115115
export CENTOS_TYPE="NetInstall"
116-
ISO_CHECKSUM=$(curl -s "ftp://ftp.cvut.cz/centos/${CENTOS_VERSION}/isos/x86_64/sha256sum.txt" | awk "/CentOS-${CENTOS_VERSION}-x86_64-${CENTOS_TYPE}-${CENTOS_TAG}.iso/ { print \$1 }")
116+
ISO_CHECKSUM=$(curl -s "https://mirror.fcix.net/centos-vault/centos/${CENTOS_VERSION}/isos/x86_64/sha256sum.txt" | awk "/CentOS-${CENTOS_VERSION}-x86_64-${CENTOS_TYPE}-${CENTOS_TAG}.iso/ { print \$1 }")
117117
PACKER_CMD_PARAMS+=("${MY_NAME}-${CENTOS_VERSION}.json")
118118
echo "* NAME: ${NAME}, CENTOS_VERSION: ${CENTOS_VERSION}, CENTOS_TAG: ${CENTOS_TAG}, CENTOS_TYPE: ${CENTOS_TYPE}"
119119
;;

my_centos-7.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
],
112112
"variables": {
113113
"accelerator": "kvm",
114-
"centos_mirror": "http://ftp.cvut.cz/centos/",
114+
"centos_mirror": "https://mirror.fcix.net/centos-vault/centos/",
115115
"centos_tag": "{{ env `CENTOS_TAG` }}",
116116
"centos_type": "{{ env `CENTOS_TYPE` }}",
117117
"centos_version": "{{ env `CENTOS_VERSION` }}",

upload_box_to_vagrantcloud.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ cmdline() {
7272
*centos*)
7373
CENTOS_VERSION=$(echo "${VAGRANT_CLOUD_BOX_NAME}" | awk -F '-' '{ print $2 }')
7474
export CENTOS_VERSION
75-
CENTOS_TAG=$(curl -s "ftp://ftp.cvut.cz/centos/${CENTOS_VERSION}/isos/x86_64/sha256sum.txt" | sed -n 's/.*-\(..\)\(..\)\.iso/\1\2/p' | head -1)
75+
CENTOS_TAG=$(curl -s "https://mirror.fcix.net/centos-vault/centos/${CENTOS_VERSION}/isos/x86_64/sha256sum.txt" | sed -n 's/.*-\(..\)\(..\)\.iso/\1\2/p' | head -1)
7676
export CENTOS_TAG
7777
CENTOS_ARCH=$(echo "${VAGRANT_CLOUD_BOX_NAME}" | awk -F '-' '{ print $3 }')
7878
export CENTOS_ARCH

0 commit comments

Comments
 (0)