From 29b56cd5e289a35a24459af70dd6678b0c55cb9b Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Mon, 21 Sep 2009 18:21:33 -0400 Subject: Set/restore umask in the sourceballs cron job Signed-off-by: Aaron Griffin --- cron-jobs/sourceballs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cron-jobs/sourceballs') diff --git a/cron-jobs/sourceballs b/cron-jobs/sourceballs index 72baa32..0d8be62 100755 --- a/cron-jobs/sourceballs +++ b/cron-jobs/sourceballs @@ -11,6 +11,7 @@ LOCKFILE="/tmp/.sourceball.lock" cleanup () { rm -f "$LOCKFILE" + restore_umask exit 0 } @@ -27,6 +28,8 @@ fi trap cleanup 0 trap ctrl_c 2 +set_umask + /bin/touch "$LOCKFILE" dirname="$(/bin/readlink -f $(/usr/bin/dirname $0))" -- cgit v1.2.3-24-g4f1b