[sysadmin-bin: 101/168] Set the umask when creating info files
- From: Andrea Veri <av src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin: 101/168] Set the umask when creating info files
- Date: Thu, 24 May 2012 19:59:56 +0000 (UTC)
commit 06f8c0965223ce935aad4b72d45873dc0e71c30c
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Fri Apr 24 19:20:27 2009 -0400
Set the umask when creating info files
Set umask to 0002 before creating description, gnome_group, etc,
or they won't be group writable when the hoook script is run without
a login shell.
post-receive-update-description | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/post-receive-update-description b/post-receive-update-description
index 658b6f0..2603c70 100755
--- a/post-receive-update-description
+++ b/post-receive-update-description
@@ -1,5 +1,7 @@
#!/bin/bash
+umask 0002
+
BINDIR=/home/admin/gitadmin-bin
GIT_DIR=$(git rev-parse --git-dir 2>/dev/null)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]