diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-09-22 00:21:33 +0200 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-09-22 00:21:33 +0200 |
commit | 29b56cd5e289a35a24459af70dd6678b0c55cb9b (patch) | |
tree | 7f99a2a814636fbae1fbb64fcfa25bb56e146cc9 /cron-jobs/sourceballs | |
parent | c573cb4a00969d8d81d0fdf9789e255f4d296d39 (diff) | |
download | dbscripts-29b56cd5e289a35a24459af70dd6678b0c55cb9b.tar.gz dbscripts-29b56cd5e289a35a24459af70dd6678b0c55cb9b.tar.xz |
Set/restore umask in the sourceballs cron job
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'cron-jobs/sourceballs')
-rwxr-xr-x | cron-jobs/sourceballs | 3 |
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))" |