Skip to content

Commit 2265fc5

Browse files
authored
Merge pull request #183 from sumitpore/master
Attempt log file creation if parent directory is writable
2 parents b77b83e + 17054e3 commit 2265fc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

admin/partials/nginx-helper-general-options.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@
629629
if ( ! is_dir( $log_path ) ) {
630630
mkdir( $log_path );
631631
}
632-
if ( ! file_exists( $log_path . 'nginx.log' ) ) {
632+
if ( is_writable( $log_path ) && ! file_exists( $log_path . 'nginx.log' ) ) {
633633
$log = fopen( $log_path . 'nginx.log', 'w' );
634634
fclose( $log );
635635
}

0 commit comments

Comments
 (0)