Skip to content

Commit 0fdafdb

Browse files
committed
update cron scripts
1 parent 286ec33 commit 0fdafdb

File tree

6 files changed

+39
-14
lines changed

6 files changed

+39
-14
lines changed

cron/beta-8

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ rm -rf /etc/pungi-beta
55
git clone https://git.rockylinux.org/rocky/pungi-rocky.git -b r8-beta /etc/pungi-beta
66
ret_val=$?
77
if [ "$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=$?
1717
popd
1818

1919
if [ "$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
2323
fi

cron/lookahead-10

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
#!/bin/bash
22
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
33
FROMMAIL="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; }
57
git pull
68
ret_val=$?
79
if [ "$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" \
1113
1214
exit 1
1315
fi
1416
bash produce-10-lookahead-full.sh
1517
ret_val=$?
16-
popd
18+
popd || { echo "Could not go back to the previous directory"; exit; }
1719

1820
if [ "$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; }
2224
fi

cron/lookahead-8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ret_val=$?
1616
popd
1717

1818
if [ "$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
2222
fi

cron/stable-10

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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

cron/stable-updates-8

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ rm -rf /mnt/compose/8_metadata
77
git clone https://git.rockylinux.org/rocky/rocky-module-metadata.git -b r8 /mnt/compose/8_metadata
88
ret_val=$?
99
if [ "$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=$?
1919
popd
2020

2121
if [ "$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
3535
fi

cron/stable-updates-no-devel-8

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ret_val=$?
1818
popd
1919

2020
if [ "$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
3434
fi

0 commit comments

Comments
 (0)