Browse Source

Less maniver

Miraty 3 years ago
parent
commit
e7e6ae2b7f
2 changed files with 2 additions and 2 deletions
  1. 1 1
      public/ht/http-onion.php
  2. 1 1
      public/ht/le.php

+ 1 - 1
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

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