diff options
| -rwxr-xr-x | src/init | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |
