We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed7ede0 commit 921fd61Copy full SHA for 921fd61
server/mods-available/web_module.inc.php
@@ -219,8 +219,8 @@ function restartHttpd($action = 'restart') {
219
}
220
221
// nginx: do a syntax check because on some distributions, the init script always returns 0 - even if the syntax is not ok (how stupid is that?)
222
- if($web_config['server_type'] == 'nginx' && $retval['retval'] == 0 && is_executable('/usr/sbin/nginx')){
223
- exec('/usr/sbin/nginx -t 2>&1', $retval['output'], $retval['retval']);
+ if($web_config['server_type'] == 'nginx' && $retval['retval'] == 0){
+ exec('nginx -t 2>&1', $retval['output'], $retval['retval']);
224
225
return $retval;
226
0 commit comments