commit b8260c7d4cf3c9fa8c1aeaa8f910a6d052ed8d22 parent 7744f8f14d045d5da0fd0f8a7bb58241dff2d758 Author: Matthias Jaros <jaros@mailbox.org> Date: Mon, 1 Dec 2025 14:28:30 +0100 Set better file permissions for permission file and moved this part to function Diffstat:
| M | src/init | | | 8 | +++++++- |
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git 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