The following detection code:

[...]
    // Try to detect the nginx restart command.  
    $options[] = '/usr/sbin/nginx -s';
    $options[] = '/usr/local/sbin/nginx -s';
    $options[] = '/usr/local/bin/nginx -s';

    foreach ($options as $test) {
      if (is_executable($test)) {
        $command = $test;
        break;
      }
    }

    return "sudo $command reload";

will never succeed in finding /usr/local/bin/nginx -s as a restart command because that path has a space and is not executable.

Found this will staring at #1297372: Installing with nginx requires some unknown sudo command.

Comments

omega8cc’s picture