瀏覽代碼

Ensure proxy server is restarted when changing user status

Kristan Kenney 6 年之前
父節點
當前提交
9a140b0cab
共有 2 個文件被更改,包括 6 次插入0 次删除
  1. 3 0
      bin/v-suspend-user
  2. 3 0
      bin/v-unsuspend-user

+ 3 - 0
bin/v-suspend-user

@@ -77,6 +77,9 @@ fi
 $BIN/v-restart-web $restart
 $BIN/v-restart-web $restart
 check_result $? "Web restart failed" >/dev/null
 check_result $? "Web restart failed" >/dev/null
 
 
+$BIN/v-restart-proxy $restart
+check_result $? "Proxy restart failed" >/dev/null
+
 $BIN/v-restart-dns $restart
 $BIN/v-restart-dns $restart
 check_result $? "DNS restart failed" >/dev/null
 check_result $? "DNS restart failed" >/dev/null
 
 

+ 3 - 0
bin/v-unsuspend-user

@@ -80,6 +80,9 @@ decrease_user_value 'admin' '$SUSPENDED_USERS'
 $BIN/v-restart-web $restart
 $BIN/v-restart-web $restart
 check_result $? "Web restart failed" >/dev/null
 check_result $? "Web restart failed" >/dev/null
 
 
+$BIN/v-restart-proxy $restart
+check_result $? "Proxy restart failed" >/dev/null
+
 $BIN/v-restart-dns $restart
 $BIN/v-restart-dns $restart
 check_result $? "DNS restart failed" >/dev/null
 check_result $? "DNS restart failed" >/dev/null