summaryrefslogtreecommitdiff
path: root/cron-jobs
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-09-21 18:21:33 -0400
committerAaron Griffin <aaronmgriffin@gmail.com>2009-09-21 18:21:33 -0400
commit29b56cd5e289a35a24459af70dd6678b0c55cb9b (patch)
tree7f99a2a814636fbae1fbb64fcfa25bb56e146cc9 /cron-jobs
parentc573cb4a00969d8d81d0fdf9789e255f4d296d39 (diff)
Set/restore umask in the sourceballs cron job
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'cron-jobs')
-rwxr-xr-xcron-jobs/sourceballs3
1 files changed, 3 insertions, 0 deletions
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))"