File tree Expand file tree Collapse file tree 6 files changed +39
-14
lines changed Expand file tree Collapse file tree 6 files changed +39
-14
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ rm -rf /etc/pungi-beta
55git clone https://git.rockylinux.org/rocky/pungi-rocky.git -b r8-beta /etc/pungi-beta
66ret_val=$?
77if [ " $ret_val " -ne 0 ]; then
8- echo " Git pull failed for beta pungi config" | mutt -e " set from=\" $FROM \" " \
8+ echo " Git pull failed for beta pungi config" | mutt -e " set from=\" $FROMMAIL \" " \
99 -e ' set envelope_from=yes' \
1010 -s " Git pull on /etc/pungi-beta failed" \
1111@@ -17,7 +17,7 @@ ret_val=$?
1717popd
1818
1919if [ " $ret_val " -eq 0 ]; then
20- pushd /root/sync-devel /sync
20+ pushd /root/toolkit /sync
2121 RLVER=8 bash beta-release-sync-to-staging.sh
2222 popd
2323fi
Original file line number Diff line number Diff line change 11#! /bin/bash
22PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
33FROMMAIL=
" Compose Tracker <[email protected] >" 4- pushd /etc/pungi-10-lh/scripts
4+ git clone https://git.rockylinux.org/rocky/pungi-rocky.git -b r10s /etc/pungi-lh-10
5+ rm -rf /etc/pungi-lh-10
6+ pushd /etc/pungi-lh-10/scripts || { echo " Pungi directory not found" ; exit ; }
57git pull
68ret_val=$?
79if [ " $ret_val " -ne 0 ]; then
8- echo " Git pull failed for LookAhead pungi config" | mutt -e " set from=\" $FROM \" " \
10+ echo " Git pull failed for LookAhead pungi config" | mutt -e " set from=\" $FROMMAIL \" " \
911 -e ' set envelope_from=yes' \
10- -s " Git pull on /etc/pungi-lh failed" \
12+ -s " Git pull on /etc/pungi-lh-10 failed" \
11131214 exit 1
1315fi
1416bash produce-10-lookahead-full.sh
1517ret_val=$?
16- popd
18+ popd || { echo " Could not go back to the previous directory " ; exit ; }
1719
1820if [ " $ret_val " -eq 0 ]; then
19- pushd /root/sync-devel /sync
21+ pushd /root/toolkit /sync || { echo " Toolkit directory not found " ; exit ; }
2022 RLVER=10 bash lh-release-sync-to-staging.sh
21- popd
23+ popd || { echo " Could not go back to previous directory " ; exit ; }
2224fi
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ ret_val=$?
1616popd
1717
1818if [ " $ret_val " -eq 0 ]; then
19- pushd /root/sync-devel /sync
19+ pushd /root/toolkit /sync
2020 RLVER=8 bash lh-release-sync-to-staging.sh
2121 popd
2222fi
Original file line number Diff line number Diff line change 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+ pushd /etc/pungi-prod-10/scripts || { echo " Pungi directory not found" ; exit ; }
6+ git pull
7+ ret_val=$?
8+ if [ " $ret_val " -ne 0 ]; then
9+ echo " Git pull failed for LookAhead pungi config" | mutt -e " set from=\" $FROMMAIL \" " \
10+ -e ' set envelope_from=yes' \
11+ -s " Git pull on /etc/pungi-prod-10 failed" \
12+ 13+ exit 1
14+ fi
15+ bash produce-10-full.sh
16+ ret_val=$?
17+ popd || { echo " Could not go back to the previous directory" ; exit ; }
18+
19+ if [ " $ret_val " -eq 0 ]; then
20+ pushd /root/toolkit/sync || { echo " Toolkit directory not found" ; exit ; }
21+ RLVER=10 bash minor-release-sync-to-staging.sh
22+ popd || { echo " Could not go back to previous directory" ; exit ; }
23+ fi
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ rm -rf /mnt/compose/8_metadata
77git clone https://git.rockylinux.org/rocky/rocky-module-metadata.git -b r8 /mnt/compose/8_metadata
88ret_val=$?
99if [ " $ret_val " -ne 0 ]; then
10- echo " Git pull failed for prod pungi config" | mutt -e " set from=\" $FROM \" " \
10+ echo " Git pull failed for prod pungi config" | mutt -e " set from=\" $FROMMAIL \" " \
1111 -e ' set envelope_from=yes' \
1212 -s " Git pull on /etc/pungi-prod failed" \
1313@@ -19,7 +19,7 @@ ret_val=$?
1919popd
2020
2121if [ " $ret_val " -eq 0 ]; then
22- pushd /root/sync-devel /sync
22+ pushd /root/toolkit /sync
2323 RLVER=8 bash sync-to-staging.sh Rocky-devel
2424 RLVER=8 bash sync-to-staging.sh Extras
2525 RLVER=8 bash sync-to-staging.sh Rocky
@@ -29,7 +29,7 @@ if [ "$ret_val" -eq 0 ]; then
2929 python3.9 /usr/local/bin/apollo_tree -p $( pwd) -n ' Rocky Linux 8 $arch' -i Live -i Minimal -i devel -i extras -i images -i isos -i live -i metadata -i Devel -i plus -i nfv
3030 popd
3131
32- pushd /root/sync-devel /sync
32+ pushd /root/toolkit /sync
3333 RLVER=8 bash sign-repos-only.sh
3434 popd
3535fi
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ ret_val=$?
1818popd
1919
2020if [ " $ret_val " -eq 0 ]; then
21- pushd /root/sync-devel /sync
21+ pushd /root/toolkit /sync
2222 # RLVER=8 bash sync-to-staging.sh Rocky-devel
2323 # RLVER=8 bash sync-to-staging.sh Extras
2424 RLVER=8 bash sync-to-staging.sh Rocky
@@ -28,7 +28,7 @@ if [ "$ret_val" -eq 0 ]; then
2828 python3.9 /usr/local/bin/apollo_tree -p $( pwd) -n ' Rocky Linux 8 $arch' -i Live -i Minimal -i devel -i extras -i images -i isos -i live -i metadata -i Devel -i plus -i nfv
2929 popd
3030
31- pushd /root/sync-devel /sync
31+ pushd /root/toolkit /sync
3232 RLVER=8 bash sign-repos-only.sh
3333 popd
3434fi
You can’t perform that action at this time.
0 commit comments