Less maniver

This commit is contained in:
Miraty 2022-05-06 15:21:32 +02:00
parent 0606c21b3a
commit e7e6ae2b7f
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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.");