From 9aec6676713fe48e099307476fa378dbf934627d Mon Sep 17 00:00:00 2001 From: Matthias Lucas Jaros Date: Mon, 1 Dec 2025 14:28:30 +0100 Subject: Set better file permissions for permission file and moved this part to function --- src/init | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/init') 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 -- cgit v1.3.1