summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsssd-nightly.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/sssd-nightly.sh b/sssd-nightly.sh
index 368cf07..79a85e4 100755
--- a/sssd-nightly.sh
+++ b/sssd-nightly.sh
@@ -52,11 +52,12 @@ LOGFILE=/local/sgallagh/logs/nightly-$datestamp.log
echo "===== BUILD STARTED AT `date` =====" >> $LOGFILE
echo "===== Cleaning old logs =====" >> $LOGFILE
-find /local/sgallagh/logs -type f -daystart -ctime +6 -name "nightly-*.log" -exec rm -f {} \; || finish 96
+find /local/sgallagh/logs -type f -daystart -ctime +6 -name "nightly-*.log" -exec rm -f {} \; || finish 40
echo "===== Cleaning old RPMS =====" >> $LOGFILE
-find /local/sgallagh/repos/f11 -type f -daystart -ctime +6 -name "sssd-*" -exec rm -f {} \; || finish 98
-find /local/sgallagh/repos/rhel5 -type f -daystart -ctime +6 -name "sssd-*" -exec rm -f {} \; || finish 99
+find /local/sgallagh/repos/f11 -type f -daystart -ctime +6 -name "sssd-*" -exec rm -f {} \; || finish 50
+find /local/sgallagh/repos/f12 -type f -daystart -ctime +6 -name "sssd-*" -exec rm -f {} \; || finish 51
+find /local/sgallagh/repos/rhel5 -type f -daystart -ctime +6 -name "sssd-*" -exec rm -f {} \; || finish 52
echo "===== CHECKING OUT CODE =====" >> $LOGFILE
rm -Rf sssd-$datestamp #Remove an incomplete previous run