Added sphere-release installation to avoid modules crash

pull/1/head
Arkady L. Shane 5 months ago
parent 3d486df87b
commit 62503430e7
Signed by: tigro
GPG Key ID: 1EC08A25C9DB2503

@ -323,7 +323,7 @@ assert_supported_filesystem() {
get_release_file_url() { get_release_file_url() {
local -r os_version="${1:0:1}" local -r os_version="${1:0:1}"
local -r arch="${2}" local -r arch="${2}"
echo "${ALMA_RELEASE_URL:-https://rsync.inferitos.ru/msvsphere/sphere-release-server-latest-${os_version}.${arch}.rpm https://rsync.inferitos.ru/msvsphere/sphere-release-identity-server-latest-${os_version}.${arch}.rpm https://rsync.inferitos.ru/msvsphere/sphere-release-common-latest-${os_version}.${arch}.rpm}" echo "${ALMA_RELEASE_URL:-https://rsync.inferitos.ru/msvsphere/sphere-release-server-latest-${os_version}.${arch}.rpm https://rsync.inferitos.ru/msvsphere/sphere-release-identity-server-latest-${os_version}.${arch}.rpm https://rsync.inferitos.ru/msvsphere/sphere-release-common-latest-${os_version}.${arch}.rpm https://rsync.inferitos.ru/msvsphere/sphere-release-latest-${os_version}.${arch}.rpm}"
} }
# Returns a latest msvsphere-repos RPM package download URL. # Returns a latest msvsphere-repos RPM package download URL.
@ -386,7 +386,7 @@ install_rpm_pubkey() {
download_release_files() { download_release_files() {
local -r tmp_dir="${1}" local -r tmp_dir="${1}"
local -r release_url="${2}" local -r release_url="${2}"
local -r release_path="${tmp_dir}/sphere-release-server-latest.rpm ${tmp_dir}/sphere-release-identity-server-latest.rpm ${tmp_dir}/sphere-release-common-latest.rpm" local -r release_path="${tmp_dir}/sphere-release-server-latest.rpm ${tmp_dir}/sphere-release-identity-server-latest.rpm ${tmp_dir}/sphere-release-common-latest.rpm ${tmp_dir}/sphere-release-latest.rpm"
local output local output
if ! output=$(for url in ${release_url}; do curl -f -s -S -o "${tmp_dir}/$(echo $url | awk -F/ '{ print $NF }' | sed 's@-[0-9].*$@.rpm@')" "${url}"; done 2>&1); then if ! output=$(for url in ${release_url}; do curl -f -s -S -o "${tmp_dir}/$(echo $url | awk -F/ '{ print $NF }' | sed 's@-[0-9].*$@.rpm@')" "${url}"; done 2>&1); then
report_step_error 'Download msvsphere packages - release' "${output}" report_step_error 'Download msvsphere packages - release' "${output}"

Loading…
Cancel
Save