Less maniver
This commit is contained in:
parent
0606c21b3a
commit
e7e6ae2b7f
2 changed files with 2 additions and 2 deletions
|
@ -93,7 +93,7 @@ HiddenServicePort 80 [::1]:" . INTERNAL_ONION_HTTP_PORT . "
|
|||
file_put_contents(NGINX_CONFIG_PATH . "/" . $_POST['dir'] . ".conf", $nginxConf);
|
||||
|
||||
// Reload Nginx
|
||||
exec(SUDO_PATH . " " . MANIVER_PATH . " reload-nginx", $output);
|
||||
exec(SUDO_PATH . " " . SYSTEMCTL_PATH . " reload nginx", $output);
|
||||
addNiverLog("Nginx reloaded by " . $_SESSION['username'], $output);
|
||||
|
||||
// Tell the user their site address
|
||||
|
|
|
@ -42,7 +42,7 @@ if (isset($_POST['domain']) AND isset($_SESSION['username'])) {
|
|||
// Reload Nginx
|
||||
exec(SUDO_PATH . " " . SYSTEMCTL_PATH . " reload nginx reload", $output, $returnCode);
|
||||
|
||||
// Abort if Maniver failed to reload Nginx
|
||||
// Abort if Nginx reload failed
|
||||
if ($returnCode !== 0)
|
||||
exit("Nginx configuration reload failed. Try again later, or contact an administrator.");
|
||||
|
||||
|
|
Loading…
Reference in a new issue