Просмотр исходного кода

Fix restart nginx / apache2 when suspending users (#4007)

* Restart services after suspending

* Also on rebuild
Jaap Marcus 2 лет назад
Родитель
Сommit
58336c6200
1 измененных файлов с 2 добавлено и 4 удалено
  1. 2 4
      web/bulk/user/index.php

+ 2 - 4
web/bulk/user/index.php

@@ -27,11 +27,11 @@ if ($_SESSION["userContext"] === "admin") {
 			break;
 		case "suspend":
 			$cmd = "v-suspend-user";
-			$restart = "no";
+			$restart = "yes";
 			break;
 		case "unsuspend":
 			$cmd = "v-unsuspend-user";
-			$restart = "no";
+			$restart = "yes";
 			break;
 		case "update counters":
 			$cmd = "v-update-user-counters";
@@ -46,11 +46,9 @@ if ($_SESSION["userContext"] === "admin") {
 			break;
 		case "rebuild web":
 			$cmd = "v-rebuild-web-domains";
-			$restart = "no";
 			break;
 		case "rebuild dns":
 			$cmd = "v-rebuild-dns-domains";
-			$restart = "no";
 			break;
 		case "rebuild mail":
 			$cmd = "v-rebuild-mail-domains";