Skip to content

Commit 30d7c28

Browse files
committed
add simple find unsigned crons
1 parent 9201ace commit 30d7c28

File tree

4 files changed

+92
-0
lines changed

4 files changed

+92
-0
lines changed

cron/lookahead-find-unsigned-10

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
# Reports unsigned packages for Rocky Linux 10 packages (lookahead)
3+
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
4+
export RLVER=10
5+
FROMMAIL="Compose Tracker <[email protected]>"
6+
source "/root/toolkit/sync/common"
7+
python3 /root/toolkit/mangle/koji/unsigned.py --key rocky-linux-9 --tag "dist-rocky${MAJOR}-lookahead" | grep '\.src' > "/tmp/unsigned_lookahead_${MAJOR}"
8+
ret_val=$?
9+
10+
if [ "$ret_val" -ne 0 ]; then
11+
echo "Unable to check for unsigned builds for ${MAJOR} LookAhead" | mutt -e "set from=\"$FROMMAIL\"" \
12+
-e 'set envelope_from=yes' \
13+
14+
exit 1
15+
fi
16+
17+
# Assumes we got a list
18+
sed -i 's/\.src//g' "/tmp/unsigned_lookahead_${MAJOR}"
19+
20+
mutt -e "set from=\"$FROM\"" \
21+
-e 'set envelope_from=yes' \
22+
-s "Unsigned builds for ${MAJOR} LookAhead" \
23+
[email protected] < "/tmp/unsigned_lookahead_${MAJOR}"

cron/lookahead-find-unsigned-9

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
# Reports unsigned packages for Rocky Linux 9 packages (lookahead)
3+
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
4+
export RLVER=9
5+
FROMMAIL="Compose Tracker <[email protected]>"
6+
source "/root/toolkit/sync/common"
7+
python3 /root/toolkit/mangle/koji/unsigned.py --key rocky-linux-9 --tag "dist-rocky${MAJOR}-lookahead" | grep '\.src' > "/tmp/unsigned_lookahead_${MAJOR}"
8+
ret_val=$?
9+
10+
if [ "$ret_val" -ne 0 ]; then
11+
echo "Unable to check for unsigned builds for ${MAJOR} LookAhead" | mutt -e "set from=\"$FROMMAIL\"" \
12+
-e 'set envelope_from=yes' \
13+
14+
exit 1
15+
fi
16+
17+
# Assumes we got a list
18+
sed -i 's/\.src//g' "/tmp/unsigned_lookahead_${MAJOR}"
19+
20+
mutt -e "set from=\"$FROM\"" \
21+
-e 'set envelope_from=yes' \
22+
-s "Unsigned builds for ${MAJOR} LookAhead" \
23+
[email protected] < "/tmp/unsigned_lookahead_${MAJOR}"

cron/stable-find-unsigned-10

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
# Reports unsigned packages for Rocky Linux 10 packages (stable)
3+
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
4+
export RLVER=10
5+
FROMMAIL="Compose Tracker <[email protected]>"
6+
source "/root/toolkit/sync/common"
7+
python3 /root/toolkit/mangle/koji/unsigned.py --key rocky-linux-9 --tag "dist-rocky${REVISION}" | grep '\.src' > "/tmp/unsigned_${REVISION}"
8+
ret_val=$?
9+
10+
if [ "$ret_val" -ne 0 ]; then
11+
echo "Unable to check for unsigned builds for ${REVISION}" | mutt -e "set from=\"$FROMMAIL\"" \
12+
-e 'set envelope_from=yes' \
13+
14+
exit 1
15+
fi
16+
17+
# Assumes we got a list
18+
sed -i 's/\.src//g' "/tmp/unsigned_${REVISION}"
19+
20+
mutt -e "set from=\"$FROM\"" \
21+
-e 'set envelope_from=yes' \
22+
-s "Unsigned builds for ${REVISION}" \
23+
[email protected] < "/tmp/unsigned_${REVISION}"

cron/stable-find-unsigned-9

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
# Reports unsigned packages for Rocky Linux 9 packages (stable)
3+
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
4+
export RLVER=9
5+
FROMMAIL="Compose Tracker <[email protected]>"
6+
source "/root/toolkit/sync/common"
7+
python3 /root/toolkit/mangle/koji/unsigned.py --key rocky-linux-9 --tag "dist-rocky${REVISION}" | grep '\.src' > "/tmp/unsigned_${REVISION}"
8+
ret_val=$?
9+
10+
if [ "$ret_val" -ne 0 ]; then
11+
echo "Unable to check for unsigned builds for ${REVISION}" | mutt -e "set from=\"$FROMMAIL\"" \
12+
-e 'set envelope_from=yes' \
13+
14+
exit 1
15+
fi
16+
17+
# Assumes we got a list
18+
sed -i 's/\.src//g' "/tmp/unsigned_${REVISION}"
19+
20+
mutt -e "set from=\"$FROM\"" \
21+
-e 'set envelope_from=yes' \
22+
-s "Unsigned builds for ${REVISION}" \
23+
[email protected] < "/tmp/unsigned_${REVISION}"

0 commit comments

Comments
 (0)