From 6b1d6a43d4ff216860ac696760fb5fb71189c014 Mon Sep 17 00:00:00 2001 From: nazunalika Date: Tue, 6 Jul 2021 15:35:37 -0700 Subject: [PATCH] setup commons --- scripts/common-8 | 1 + scripts/produce-8.sh | 3 ++- scripts/updates-8-devel.sh | 1 + scripts/updates-8-extras.sh | 1 + scripts/updates-8-gluster9.sh | 1 + scripts/updates-8-nfv.sh | 1 + scripts/updates-8-plus.sh | 1 + scripts/updates-8.sh | 1 + 8 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 scripts/common-8 diff --git a/scripts/common-8 b/scripts/common-8 new file mode 100644 index 0000000..1e7b697 --- /dev/null +++ b/scripts/common-8 @@ -0,0 +1 @@ +REVISION="8.4" diff --git a/scripts/produce-8.sh b/scripts/produce-8.sh index 9fa1052..3533738 100755 --- a/scripts/produce-8.sh +++ b/scripts/produce-8.sh @@ -1,5 +1,6 @@ #!/bin/bash +source "$(dirname "$0")/common-8" export PATH=/usr/sbin:/usr/bin:/root/bin TARGET_DIR="/mnt/compose/8" SHORT=Rocky @@ -7,7 +8,7 @@ CONFIG=/etc/pungi-prod/r8.conf # Unused for now OLDCOMPOSE_ID=$(cat $TARGET_DIR/latest-$SHORT-8/COMPOSE_ID) SKIP="" -LABEL="--production --label RC-8.4" +LABEL="--production --label RC-${REVISION}" CMD="pungi-koji --config=$CONFIG --old-composes=$TARGET_DIR $SKIP $LABEL" #COMPOSE_ID="Rocky-8-20210625.n.0" diff --git a/scripts/updates-8-devel.sh b/scripts/updates-8-devel.sh index 6716ca0..b42c03b 100755 --- a/scripts/updates-8-devel.sh +++ b/scripts/updates-8-devel.sh @@ -1,5 +1,6 @@ #!/bin/bash +source "$(dirname "$0")/common-8" export PATH=/usr/sbin:/usr/bin:/root/bin TARGET_DIR="/mnt/compose/8" SHORT=Devel diff --git a/scripts/updates-8-extras.sh b/scripts/updates-8-extras.sh index c6e237b..7044cc7 100755 --- a/scripts/updates-8-extras.sh +++ b/scripts/updates-8-extras.sh @@ -1,5 +1,6 @@ #!/bin/bash +source "$(dirname "$0")/common-8" TARGET_DIR="/mnt/compose/8" SHORT=Extras CONFIG=/etc/pungi-prod/extras.conf diff --git a/scripts/updates-8-gluster9.sh b/scripts/updates-8-gluster9.sh index a8e5838..9ffd078 100755 --- a/scripts/updates-8-gluster9.sh +++ b/scripts/updates-8-gluster9.sh @@ -1,5 +1,6 @@ #!/bin/bash +source "$(dirname "$0")/common-8" TARGET_DIR="/mnt/compose/8" SHORT=Gluster9 CONFIG=/etc/pungi-prod/gluster9.conf diff --git a/scripts/updates-8-nfv.sh b/scripts/updates-8-nfv.sh index 1505dd3..c4810f8 100755 --- a/scripts/updates-8-nfv.sh +++ b/scripts/updates-8-nfv.sh @@ -1,5 +1,6 @@ #!/bin/bash +source "$(dirname "$0")/common-8" TARGET_DIR="/mnt/compose/8" SHORT=NFV CONFIG=/etc/pungi-prod/nfv.conf diff --git a/scripts/updates-8-plus.sh b/scripts/updates-8-plus.sh index fbb32b8..2f3f36d 100755 --- a/scripts/updates-8-plus.sh +++ b/scripts/updates-8-plus.sh @@ -1,5 +1,6 @@ #!/bin/bash +source "$(dirname "$0")/common-8" TARGET_DIR="/mnt/compose/8" SHORT=Plus CONFIG=/etc/pungi-prod/plus.conf diff --git a/scripts/updates-8.sh b/scripts/updates-8.sh index 7a84443..b8e31e4 100755 --- a/scripts/updates-8.sh +++ b/scripts/updates-8.sh @@ -1,5 +1,6 @@ #!/bin/bash +source "$(dirname "$0")/common-8" export PATH=/usr/sbin:/usr/bin:/root/bin TARGET_DIR="/mnt/compose/8" SHORT=Rocky