summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/init8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/init b/src/init
index 836cdb2..84b01de 100755
--- a/src/init
+++ b/src/init
@@ -110,6 +110,12 @@ function setupSSH
mkdir -p /var/ssh/etc/ssh/ && ssh-keygen -A -f /var/ssh
end
+function setupRepoPermissionACL
+ echo -n > $_REPO_PERMISSIONS_FILE
+ chown root:$_GIT_SUDO_GROUP $_REPO_PERMISSIONS_FILE
+ chmod 740 $_REPO_PERMISSIONS_FILE
+end
+
###
###
### main
@@ -171,7 +177,7 @@ for userConfig in $users
end
# Setup repos
-echo > $_REPO_PERMISSIONS_FILE
+setupRepoPermissionACL
for repoConfig in $repos
setupRepo "$repoConfig"
end