Skip to content

Commit 5ec4797

Browse files
committed
add stable updates 10 script
1 parent 5a7eeb5 commit 5ec4797

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

cron/stable-updates-10

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/bin/bash
2+
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
3+
FROMMAIL="Compose Tracker <[email protected]>"
4+
rm -rf /etc/pungi-prod-10
5+
git clone https://git.rockylinux.org/rocky/pungi-rocky.git -b r10.0 /etc/pungi-prod-10
6+
ret_val=$?
7+
if [ "$ret_val" -ne 0 ]; then
8+
echo "Git pull failed for prod pungi config" | mutt -e "set from=\"$FROMMAIL\"" \
9+
-e 'set envelope_from=yes' \
10+
-s "Git pull on /etc/pungi-prod failed" \
11+
12+
exit 1
13+
fi
14+
pushd /etc/pungi-prod-10/scripts/compose
15+
bash updates-10-full.sh
16+
ret_val=$?
17+
popd
18+
19+
if [ "$ret_val" -eq 0 ]; then
20+
pushd /root/toolkit/sync
21+
RLVER=10 bash sync-to-staging.sh Rocky-devel
22+
RLVER=10 bash sync-to-staging.sh Extras
23+
RLVER=10 bash sync-to-staging.sh Rocky
24+
popd
25+
26+
# Errata is not ready for 10 yet.
27+
#pushd /mnt/repos-staging/mirror/pub/rocky/10.0
28+
#python3 /usr/local/bin/apollo_tree -p $(pwd) -n 'Rocky Linux 10 $arch' -i Live -i Minimal -i devel -i extras -i images -i isos -i live -i metadata -i Devel -i plus -i nfv
29+
#popd
30+
31+
#pushd /root/toolkit/sync
32+
#RLVER=10 bash sign-repos-only.sh
33+
#popd
34+
fi

0 commit comments

Comments
 (0)