Skip to content

Commit

Permalink
perf: 移除 lb service
Browse files Browse the repository at this point in the history
  • Loading branch information
wojiushixiaobai committed Sep 25, 2023
1 parent d862cd3 commit ee3688c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
9 changes: 1 addition & 8 deletions jmsctl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ function usage() {
echo "Management Commands: "
echo " start $(gettext 'Start JumpServer')"
echo " stop $(gettext 'Stop JumpServer')"
echo " close $(gettext 'Close JumpServer')"
echo " restart $(gettext 'Restart JumpServer')"
echo " status $(gettext 'Check JumpServer')"
echo " down $(gettext 'Offline JumpServer')"
Expand Down Expand Up @@ -86,13 +85,7 @@ function stop() {
${EXE} stop "${target}" && ${EXE} rm -f "${target}"
return
fi
services=$(get_docker_compose_services ignore_db)
for i in ${services}; do
${EXE} stop "${i}"
done
for i in ${services}; do
${EXE} rm -f "${i}" >/dev/null
done
${EXE} down -v
}

function close() {
Expand Down
9 changes: 3 additions & 6 deletions scripts/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -292,11 +292,6 @@ function get_docker_compose_services() {
if [[ "${use_minio}" == "1" ]]; then
services+=" minio"
fi
use_lb=$(get_config USE_LB)
https_port=$(get_config HTTPS_PORT)
if [[ -n "${https_port}" && "${use_lb}" != "0" ]]; then
services+=" lb"
fi
use_xpack=$(get_config_or_env USE_XPACK)
if [[ "${use_xpack}" == "1" ]]; then
services+=" razor xrdp video"
Expand Down Expand Up @@ -363,7 +358,9 @@ function get_docker_compose_cmd_line() {
if [[ "${services}" =~ minio ]]; then
cmd="${cmd} -f compose/docker-compose-minio.yml"
fi
if [[ "${services}" =~ lb ]]; then
use_lb=$(get_config USE_LB)
https_port=$(get_config HTTPS_PORT)
if [[ -n "${https_port}" && "${use_lb}" != "0" ]]; then
cmd="${cmd} -f compose/docker-compose-lb.yml"
fi
use_xpack=$(get_config_or_env USE_XPACK)
Expand Down

0 comments on commit ee3688c

Please sign in to comment.