Skip to content

Commit ce3b3fd

Browse files
authored
Fix restart nginx / apache2 when suspending users (hestiacp#4007)
* Restart services after suspending * Also on rebuild
1 parent bdae938 commit ce3b3fd

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

web/bulk/user/index.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727
break;
2828
case "suspend":
2929
$cmd = "v-suspend-user";
30-
$restart = "no";
30+
$restart = "yes";
3131
break;
3232
case "unsuspend":
3333
$cmd = "v-unsuspend-user";
34-
$restart = "no";
34+
$restart = "yes";
3535
break;
3636
case "update counters":
3737
$cmd = "v-update-user-counters";
@@ -46,11 +46,9 @@
4646
break;
4747
case "rebuild web":
4848
$cmd = "v-rebuild-web-domains";
49-
$restart = "no";
5049
break;
5150
case "rebuild dns":
5251
$cmd = "v-rebuild-dns-domains";
53-
$restart = "no";
5452
break;
5553
case "rebuild mail":
5654
$cmd = "v-rebuild-mail-domains";

0 commit comments

Comments
 (0)