Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: 优化升级判断 #381

Merged
merged 1 commit into from
Jan 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
perf: 优化升级判断判断
  • Loading branch information
wojiushixiaobai committed Jan 2, 2024
commit b2498f7321ad7a402b389896ebf5a74fd838f9fc
13 changes: 13 additions & 0 deletions scripts/7_upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,19 @@ function migrate_config_v1_5_to_v2_0() {
}

function migrate_config_v2_0_to_v3_0() {
is_running=0
for app in jms_lb jms_nginx jms_web; do
if docker ps | grep -q "${app}"; then
is_running=1
break
fi
done

if [ "$is_running" -eq 0 ]; then
# Nothing to do
return
fi

https_port=$(get_config HTTPS_PORT)
use_https=0

Expand Down