Skip to content

Commit 174915c

Browse files
committed
add/modify 10 crons
1 parent 3679357 commit 174915c

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

cron/lookahead-10

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
33
FROMMAIL="Compose Tracker <[email protected]>"
44
git clone https://git.rockylinux.org/rocky/pungi-rocky.git -b r10s /etc/pungi-lh-10
55
rm -rf /etc/pungi-lh-10
6-
pushd /etc/pungi-lh-10/scripts || { echo "Pungi directory not found"; exit; }
6+
pushd /etc/pungi-lh-10/scripts/compose || { echo "Pungi directory not found"; exit; }
77
git pull
88
ret_val=$?
99
if [ "$ret_val" -ne 0 ]; then

cron/stable-10

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
33
FROMMAIL="Compose Tracker <[email protected]>"
44
rm -rf /etc/pungi-prod-10
5-
pushd /etc/pungi-prod-10/scripts || { echo "Pungi directory not found"; exit; }
5+
pushd /etc/pungi-prod-10/scripts/compose || { echo "Pungi directory not found"; exit; }
66
git pull
77
ret_val=$?
88
if [ "$ret_val" -ne 0 ]; then

cron/stable-cleanup-10

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
pushd /mnt/koji/compose/10/
4+
5+
SRCS=$(find . -maxdepth 1 -type d -mtime +7 | grep -vE 'SIG-|Rocky-10.[0-9]+-20[2-3][0-9]' | sort)
6+
7+
printf "The following will be deleted\n"
8+
for x in $SRCS ; do echo ${x} ; done
9+
10+
rm -rf ${SRCS}

0 commit comments

Comments
 (0)