From a43daf9ece4dc7d2d44f99cf66d83efac17583c6 Mon Sep 17 00:00:00 2001 From: Divarion-D Date: Wed, 14 Jan 2026 20:33:12 +0300 Subject: [PATCH] The paths to the nginx configuration files have been fixed --- src/includes/cli/update.php | 4 ++-- src/status | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/includes/cli/update.php b/src/includes/cli/update.php index f4bc11e..c35783a 100644 --- a/src/includes/cli/update.php +++ b/src/includes/cli/update.php @@ -108,9 +108,9 @@ function loadcli() { // Remove 'reuseport' from nginx port configs foreach (array('http', 'https') as $rType) { - $rPortConfig = file_get_contents(MAIN_HOME . 'bin/nginx/ports/' . $rType . '.conf'); + $rPortConfig = file_get_contents(MAIN_HOME . 'bin/nginx/conf/ports/' . $rType . '.conf'); if (stripos($rPortConfig, ' reuseport') !== false) { - file_put_contents(MAIN_HOME . 'bin/nginx/ports/' . $rType . '.conf', str_replace(' reuseport', '', $rPortConfig)); + file_put_contents(MAIN_HOME . 'bin/nginx/conf/ports/' . $rType . '.conf', str_replace(' reuseport', '', $rPortConfig)); } } diff --git a/src/status b/src/status index 2ad2543..6da6943 100644 --- a/src/status +++ b/src/status @@ -94,11 +94,10 @@ if (posix_getpwuid(posix_geteuid())['name'] == 'root') { } foreach (array('http', 'https') as $rType) { - $rPortConfig = file_get_contents(MAIN_HOME . 'bin/nginx/ports/' . $rType . '.conf'); + $rPortConfig = file_get_contents(MAIN_HOME . 'bin/nginx/conf/ports/' . $rType . '.conf'); - if (stripos($rPortConfig, ' reuseport') === false) { - } else { - file_put_contents(MAIN_HOME . 'bin/nginx/ports/' . $rType . '.conf', str_replace(' reuseport', '', $rPortConfig)); + if (stripos($rPortConfig, ' reuseport') !== false) { + file_put_contents(MAIN_HOME . 'bin/nginx/conf/ports/' . $rType . '.conf', str_replace(' reuseport', '', $rPortConfig)); $rReload = true; } }