]> oss.titaniummirror.com Git - repo_shell.git/blobdiff - scripts/gitcreate
git_acl_file is always {git_root}/.gitacls
[repo_shell.git] / scripts / gitcreate
index 16e80ec3b61699bcec8b6365c8483f7eaf795359..cab983e43988601e24017180b53bdcfde2d0d3d6 100755 (executable)
@@ -2,9 +2,10 @@
 # gitcreate is part of the repo_shell distribution.
 
 eval $(sed -e 's| ||g' < /etc/repo_shell.conf)
-if [ -z "$owner" -o -z "$git_root" -o -z "$git_acl_file" ]; then
+if [ -z "$owner" -o -z "$git_root" ]; then
     echo "$0: please configure /etc/repo_shell.conf"
 fi
+gitacls="$git_root/.gitacls"
 
 if [ "$(whoami)" != "$owner" ]; then
     echo "$0: must run as user $owner" >&2
@@ -26,6 +27,7 @@ umask 027
 git --git-dir "$git_root/$1" init --bare
 [ $? -ne 0 ] && exit 1
 
-echo "Repository created.
-Be sure to edit $git_acl_file to allow user access, if needed."
+[ -f "$gitacls" ] && echo "Check $gitacls for proper access permissions"
+echo "Repository created."
+[ ! -f "$gitacls" ] && echo "WARNING: $gitacls DOES NOT EXIST!"
 exit 0