From 61df4add8cc317c13c6c871644a4a81b12dd30a3 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Tue, 13 Feb 2024 02:36:08 +0100 Subject: [PATCH] fix logs folders perms --- helpers/logrotate | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helpers/logrotate b/helpers/logrotate index 2843d12cd..1b586d205 100644 --- a/helpers/logrotate +++ b/helpers/logrotate @@ -87,6 +87,8 @@ EOF # Make sure permissions are correct (otherwise the config file could be ignored and the corresponding logs never rotated) chmod 644 "/etc/logrotate.d/$app" + mkdir -p "/var/log/$app" + chmod 640 "/var/log/$app" } # Remove the app's logrotate config.