diff options
| author | 2025-12-01 14:28:30 +0100 | |
|---|---|---|
| committer | 2025-12-01 14:28:30 +0100 | |
| commit | 417d35627a7fedd0a2ec7fc3b85f12be35ec10ad (patch) | |
| tree | ea5a1ebaa6a1f801391f2e16c21ad3e95f477e41 | |
| parent | c7b3f7ce4f0b56c3d69a2305c1f28d15367e2017 (diff) | |
Set better file permissions for permission file and moved this part to function
| -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 |
