mirror of
https://github.com/Vateron-Media/XC_VM.git
synced 2026-04-05 04:18:33 +00:00
The paths to the nginx configuration files have been fixed
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user