From 578eb90e6989ad4b468c7c73b1379fc05ddbed24 Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Sat, 23 May 2026 23:51:18 +0100 Subject: [PATCH] Move where umask is used. --- mirror-wrapper | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mirror-wrapper b/mirror-wrapper index 9f9c532..8c6641a 100755 --- a/mirror-wrapper +++ b/mirror-wrapper @@ -26,6 +26,9 @@ notify() { return 0 } +# Logs are only for root. +umask 027 + # Only run for the configured mirroring user. [[ "$(whoami)" != "$MIRRORING_USER" ]] && { printf "%s: %s\\n" "${0##*/}" "must be run by the '$MIRRORING_USER' user - use su to run manually" >&2 @@ -60,9 +63,6 @@ if [[ "$FLOCK" != "$0" ]]; then fi fi -# Logs are only for root. -umask 027 - # Drop the caches as sometimes old user/groups are cached. sudo /opt/sbin/drop-caches