diff options
| author | 2025-12-01 14:28:30 +0100 | |
|---|---|---|
| committer | 2025-12-01 14:28:30 +0100 | |
| commit | 9aec6676713fe48e099307476fa378dbf934627d (patch) | |
| tree | ea5a1ebaa6a1f801391f2e16c21ad3e95f477e41 /src | |
| parent | 659af74a7b576ea61f1b5d611f4aec8ace0104c2 (diff) | |
Set better file permissions for permission file and moved this part to function
Diffstat (limited to 'src')
| -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 |
