common 852 Bytes
Newer Older
1
2
# To be sourced by scripts to use

Louis Abel's avatar
Louis Abel committed
3
4
5
6
7
8
# Temporary probably. This makes it so if RLVER=... is called before the script
# it will set the version for the variables to call up. This was easier than
# creating duplicates of a bunch of stuff. Default version is 8.
if [ -z "$RLVER" ]; then
  export RLVER=8
fi
9
10
11
12
13
14

STAGING_ROOT="/mnt/repos-staging"
PRODUCTION_ROOT="/mnt/repos-production"

# relative to ${ENV}_ROOT
CATEGORY_STUB="mirror/pub/rocky"
Louis Abel's avatar
Louis Abel committed
15
16
17

# should be overriden in other commons
#RELEASE_DIR="${CATEGORY_STUB}/${REVISION}${APPEND_TO_DIR}"
18
19
20
21

# Define arches we support
ARCHES=(x86_64 aarch64)

Louis Abel's avatar
Louis Abel committed
22
23
24
25
26
27
#Source Major common
test -f "$(dirname "$0")/common_${RLVER}" && source "$(dirname "$0")/common_${RLVER}"
if [ "$?" -ne 0 ]; then
  echo "Could not source common_${RLVER}"
  exit 1
fi
28

Louis Abel's avatar
Louis Abel committed
29
30
# Combined variables based on common data
REV="${REVISION}${APPEND_TO_DIR}"