summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Matthias Jaros <jarlucmat@mailbox.org>2026-08-12 19:44:56 +0200
committerGravatar Matthias Jaros <jarlucmat@mailbox.org>2026-08-12 19:44:56 +0200
commitfd4e96515a7e0d91a00d99749c634b97ffcc6352 (patch)
tree807e4c1bde97283145e8fb15d38a0bea2da597d1
parent34304b103f8681525d3e034e1734b2e826a4926c (diff)
Set logfile to only writable to root and git group
-rwxr-xr-xsrc/init4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/init b/src/init
index 0dfad14..d82f7a3 100755
--- a/src/init
+++ b/src/init
@@ -183,7 +183,9 @@ for repoConfig in $repos
end
# create writable log file for run script
-truncate -s 0 $_LOG && chmod 777 $_LOG
+truncate -s 0 $_LOG
+chown root:$_GIT_SUDO_GROUP $_LOG
+chmod 760 $_LOG
setupSSH; or return $status