File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 24
24
from nginx_config_reloader .settings import (
25
25
BACKUP_CONFIG_DIR ,
26
26
CUSTOM_CONFIG_DIR ,
27
- MAIN_CONFIG_DIR ,
28
27
DIR_TO_WATCH ,
29
28
ERROR_FILE ,
30
29
FORBIDDEN_CONFIG_REGEX ,
31
30
MAGENTO1_CONF ,
32
31
MAGENTO2_CONF ,
33
32
MAGENTO_CONF ,
33
+ MAIN_CONFIG_DIR ,
34
34
NGINX ,
35
35
NGINX_PID_FILE ,
36
36
UNPRIVILEGED_GID ,
@@ -200,9 +200,11 @@ def _apply(self):
200
200
logger .debug ("Applying new config" )
201
201
if self .check_no_forbidden_config_directives_are_present ():
202
202
return False
203
-
203
+
204
204
if not self .check_can_write_to_main_config_dir ():
205
- self .logger .error ("No write permissions to main nginx config directory, please check your permissions." )
205
+ self .logger .error (
206
+ "No write permissions to main nginx config directory, please check your permissions."
207
+ )
206
208
return False
207
209
208
210
if not self .no_magento_config :
You can’t perform that action at this time.
0 commit comments