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; } }