[sysadmin-bin: 59/168] Set the umask in create-repository



commit 230f6fb27d800b76c44cc8af2303af4b79b79f9d
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Thu Mar 19 19:08:57 2009 -0400

    Set the umask in create-repository
    
    Use a umask of 0002 so we end up with group-writable directories.

 create-repository |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/create-repository b/create-repository
index 26a6a89..2479cbd 100755
--- a/create-repository
+++ b/create-repository
@@ -6,6 +6,10 @@
 #  the environment, but it's important to do validation on the argument and
 #  be careful how we use it.
 
+# If no run from a login shell, we might end up with the default umask of 0022
+# but we want group-writable directories.
+umask 0002
+
 BINDIR=/home/admin/gitadmin-bin
 
 if [ `whoami` != gitadmin ] ; then



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]