aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2023-08-08 07:17:05 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2023-08-08 07:17:05 -0700
commitf8c3f59f3d4181e06d0de6b2048879aef72606e7 (patch)
tree1c196e302935c6725f1e16a3a531f8a8523910d3
parentsnapshots-create: drop max threads to reduce spam (diff)
downloadmastermirror-scripts-f8c3f59f3d4181e06d0de6b2048879aef72606e7.tar.gz
mastermirror-scripts-f8c3f59f3d4181e06d0de6b2048879aef72606e7.tar.bz2
mastermirror-scripts-f8c3f59f3d4181e06d0de6b2048879aef72606e7.zip
snapshots-create.sh: hopefully make this script entirely quiet for normal runs
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-xsnapshots-create.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/snapshots-create.sh b/snapshots-create.sh
index 9edbd36..06b9723 100755
--- a/snapshots-create.sh
+++ b/snapshots-create.sh
@@ -362,12 +362,13 @@ write_time_log "END SYMLINK $(date -u)"
write_time_log "START CLEANUP $(date -u)"
# Cleanup immediate stuff
-rm -v -f \
+rm -f \
"${TEMP}"/orig \
"${TEMP}"/"${FILENAME%.bz2}"{.bz2,.xz,}{,.umd5sum} \
"${TEMP}"/"${FILENAME_NEW%.xz}"{.bz2,.xz,}{,.umd5sum} \
"${TEMP}"/"${EXCLUSION_LIST}" \
|| exit $?
+
# Cleanup older stuff that might have leaked
/usr/bin/find \
"${TEMP}" \
@@ -383,6 +384,7 @@ rm -v -f \
-name orig \
\) \
-delete
+
# Cleanup old snapshots
/usr/bin/find \
"${UPLOAD}" \