File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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 <releng@rockylinux.org>"
4+ export RLVER=9
5+ source " /root/toolkit/sync/common"
6+ rm -rf /etc/pungi-lh-${MAJOR}
7+ git clone https://git.rockylinux.org/rocky/pungi-rocky.git -b r${RLVER} s /etc/pungi-lh-${MAJOR}
8+ ret_val=$?
9+ if [ " $ret_val " -ne 0 ]; then
10+ echo " Git pull failed for LookAhead pungi config" | mutt -e " set from=\" $FROMMAIL \" " \
11+ -e ' set envelope_from=yes' \
12+ -s " Git pull on /etc/pungi-lh-${MAJOR} failed" \
13+ releng@rockylinux.org
14+ exit 1
15+ fi
16+ pushd /etc/pungi-lh-${MAJOR} /scripts/compose || { echo " Pungi directory not found" ; exit ; }
17+ bash produce-${MAJOR} -lookahead-full.sh
18+ ret_val=$?
19+ popd || { echo " Could not go back to the previous directory" ; exit ; }
20+
21+ if [ " $ret_val " -eq 0 ]; then
22+ pushd /root/toolkit/sync || { echo " Toolkit directory not found" ; exit ; }
23+ RLVER=9 bash lh-release-sync-to-staging.sh
24+ popd || { echo " Could not go back to previous directory" ; exit ; }
25+ fi
You can’t perform that action at this time.
0 commit comments