File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22# Performs a full on sync of a minor release, directories and all. It calls the
33# other scripts in this directory to assist where necessary.
4- # Note that this is EL8 specific
54#
65# Source common variables
76# shellcheck disable=SC2046,1091,1090
@@ -12,8 +11,8 @@ source $(dirname "$0")/common
1211# Major Version (eg, 8)
1312MAJ=${RLVER}
1413
15- if [[ " ${RLVER} " -ne " 8 " ]]; then
16- echo " This is only used for Rocky Linux 8 releases. "
14+ if [[ " ${RLVER} " -eq " 9 " ]]; then
15+ echo " Invalid release "
1716 exit 1
1817fi
1918
8584# Change Symlink if required
8685echo " Setting symlink to ${REV} "
8786pushd " ${STAGING_ROOT} /${CATEGORY_STUB} " || exit
88- /bin/rm " ${STAGING_ROOT} /${CATEGORY_STUB} /8 -BETA"
89- ln -sr " ${STAGING_ROOT} /${CATEGORY_STUB} /${REV} " 8 -BETA
87+ /bin/rm " ${STAGING_ROOT} /${CATEGORY_STUB} /${MAJ} -BETA"
88+ ln -sr " ${STAGING_ROOT} /${CATEGORY_STUB} /${REV} " " ${MAJ} -BETA"
9089echo " Attempting hard link"
9190perform_hardlink " ${STAGING_ROOT} /${CATEGORY_STUB} /${REV} "
9291popd || exit
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ source $(dirname "$0")/common
1212# Major Version (eg, 8)
1313MAJ=${RLVER}
1414
15- if [[ " ${RLVER} " -ne " 8 " ]]; then
16- echo " This is only used for Rocky Linux 8 releases. "
15+ if [[ " ${RLVER} " -eq " 9 " ]]; then
16+ echo " Invalid release "
1717 exit 1
1818fi
1919
8585# Change Symlink if required
8686echo " Setting symlink to ${REV} "
8787pushd " ${STAGING_ROOT} /${CATEGORY_STUB} " || exit
88- /bin/rm " ${STAGING_ROOT} /${CATEGORY_STUB} /8 -LookAhead"
89- ln -sr " ${STAGING_ROOT} /${CATEGORY_STUB} /${REV} " 8 -LookAhead
88+ /bin/rm " ${STAGING_ROOT} /${CATEGORY_STUB} /${MAJ} -LookAhead"
89+ ln -sr " ${STAGING_ROOT} /${CATEGORY_STUB} /${REV} " " ${MAJ} -LookAhead"
9090echo " Attempting hard link"
9191perform_hardlink " ${STAGING_ROOT} /${CATEGORY_STUB} /${REV} "
9292popd || exit
You can’t perform that action at this time.
0 commit comments