forked from sig_core/toolkit
release scripts should also not hardcode
This commit is contained in:
parent
ba5fe93f98
commit
723e822464
@ -1,7 +1,6 @@
|
||||
#!/bin/bash
|
||||
# Performs a full on sync of a minor release, directories and all. It calls the
|
||||
# other scripts in this directory to assist where necessary.
|
||||
# Note that this is EL8 specific
|
||||
#
|
||||
# Source common variables
|
||||
# shellcheck disable=SC2046,1091,1090
|
||||
@ -12,8 +11,8 @@ source $(dirname "$0")/common
|
||||
# Major Version (eg, 8)
|
||||
MAJ=${RLVER}
|
||||
|
||||
if [[ "${RLVER}" -ne "8" ]]; then
|
||||
echo "This is only used for Rocky Linux 8 releases."
|
||||
if [[ "${RLVER}" -eq "9" ]]; then
|
||||
echo "Invalid release"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@ -85,8 +84,8 @@ done
|
||||
# Change Symlink if required
|
||||
echo "Setting symlink to ${REV}"
|
||||
pushd "${STAGING_ROOT}/${CATEGORY_STUB}" || exit
|
||||
/bin/rm "${STAGING_ROOT}/${CATEGORY_STUB}/8-BETA"
|
||||
ln -sr "${STAGING_ROOT}/${CATEGORY_STUB}/${REV}" 8-BETA
|
||||
/bin/rm "${STAGING_ROOT}/${CATEGORY_STUB}/${MAJ}-BETA"
|
||||
ln -sr "${STAGING_ROOT}/${CATEGORY_STUB}/${REV}" "${MAJ}-BETA"
|
||||
echo "Attempting hard link"
|
||||
perform_hardlink "${STAGING_ROOT}/${CATEGORY_STUB}/${REV}"
|
||||
popd || exit
|
||||
|
@ -12,8 +12,8 @@ source $(dirname "$0")/common
|
||||
# Major Version (eg, 8)
|
||||
MAJ=${RLVER}
|
||||
|
||||
if [[ "${RLVER}" -ne "8" ]]; then
|
||||
echo "This is only used for Rocky Linux 8 releases."
|
||||
if [[ "${RLVER}" -eq "9" ]]; then
|
||||
echo "Invalid release"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@ -85,8 +85,8 @@ done
|
||||
# Change Symlink if required
|
||||
echo "Setting symlink to ${REV}"
|
||||
pushd "${STAGING_ROOT}/${CATEGORY_STUB}" || exit
|
||||
/bin/rm "${STAGING_ROOT}/${CATEGORY_STUB}/8-LookAhead"
|
||||
ln -sr "${STAGING_ROOT}/${CATEGORY_STUB}/${REV}" 8-LookAhead
|
||||
/bin/rm "${STAGING_ROOT}/${CATEGORY_STUB}/${MAJ}-LookAhead"
|
||||
ln -sr "${STAGING_ROOT}/${CATEGORY_STUB}/${REV}" "${MAJ}-LookAhead"
|
||||
echo "Attempting hard link"
|
||||
perform_hardlink "${STAGING_ROOT}/${CATEGORY_STUB}/${REV}"
|
||||
popd || exit
|
||||
|
Loading…
Reference in New Issue
Block a user