tmpfs logs fix (#4199)

This commit is contained in:
kulikov-a
2024-12-16 08:38:06 +01:00
committed by GitHub
parent eb044ee895
commit f326f0fd8d
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
PLUGIN_NAME= nginx
PLUGIN_VERSION= 1.34
PLUGIN_REVISION= 4
PLUGIN_REVISION= 5
PLUGIN_COMMENT= Nginx HTTP server and reverse proxy
PLUGIN_DEPENDS= nginx
PLUGIN_MAINTAINER= franz.fabian.94@gmail.com
@@ -74,6 +74,8 @@ syslog(LOG_DEBUG, "NGINX setup routine started.");
@mkdir('/usr/local/etc/nginx/key', 0750, true);
@mkdir("/var/db/nginx/auth", 0750, true);
@mkdir("/var/log/nginx", 0750, true);
// check logs dir permissions. in case if logs moved to tmpfs
@chmod('/var/log/nginx', 0750);
@chgrp('/var/db/nginx', GROUP_OWNER);
@chgrp('/var/db/nginx/auth', GROUP_OWNER);
@chgrp('/var/log/nginx', GROUP_OWNER);