mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
WIP: www/nginx: create log dir (#1168)
* www/nginx: add missing log directory * www/nginx: release note * www/nginx: version bump
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
PLUGIN_NAME= nginx
|
||||
PLUGIN_VERSION= 1.6
|
||||
PLUGIN_VERSION= 1.7
|
||||
PLUGIN_COMMENT= Nginx HTTP server and reverse proxy
|
||||
PLUGIN_DEPENDS= nginx
|
||||
PLUGIN_MAINTAINER= franz.fabian.94@gmail.com
|
||||
|
||||
@@ -8,6 +8,11 @@ reuse, SSL offload and HTTP media streaming.
|
||||
Plugin Changelog
|
||||
================
|
||||
|
||||
1.7
|
||||
|
||||
* bugfix: create log directory if it is missing
|
||||
* reorder menu
|
||||
|
||||
1.6
|
||||
|
||||
* fix bug due to permission downgrade (basic auth)
|
||||
|
||||
@@ -70,8 +70,10 @@ if (!isset($config['OPNsense']['Nginx'])) {
|
||||
}
|
||||
@mkdir('/usr/local/etc/nginx/key', 0750, true);
|
||||
@mkdir("/var/db/nginx/auth", 0750, true);
|
||||
@mkdir("/var/log/nginx", 0750, true);
|
||||
@chgrp('/var/db/nginx', GROUP_OWNER);
|
||||
@chgrp('/var/db/nginx/auth', GROUP_OWNER);
|
||||
@chgrp('/var/log/nginx', GROUP_OWNER);
|
||||
$nginx = $config['OPNsense']['Nginx'];
|
||||
if (isset($nginx['http_server'])) {
|
||||
if (is_array($nginx['http_server']) && !isset($nginx['http_server']['servername'])) {
|
||||
|
||||
Reference in New Issue
Block a user