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:
Fabian Franz BSc
2019-02-04 17:29:01 +01:00
committed by GitHub
parent 6d8b729d1c
commit 5e2b2bed1c
3 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -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
+5
View File
@@ -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'])) {