diff --git a/public/ht/http-onion.php b/public/ht/http-onion.php index 606ff23..07a6fef 100644 --- a/public/ht/http-onion.php +++ b/public/ht/http-onion.php @@ -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 diff --git a/public/ht/le.php b/public/ht/le.php index 7ecccab..4c21f3d 100644 --- a/public/ht/le.php +++ b/public/ht/le.php @@ -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.");