Skip to content

Commit

Permalink
perf: 初始化容器状态检测优化
Browse files Browse the repository at this point in the history
  • Loading branch information
wojiushixiaobai authored and BaiJiangJie committed Oct 31, 2024
1 parent 28e4dc4 commit 5a45ed4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/5_db_backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function main() {

db_images=$(get_db_images)

if ! docker ps | grep jms_&>/dev/null; then
if ! docker ps | grep -w "jms_core" &>/dev/null; then
create_db_ops_env
flag=1
fi
Expand Down
2 changes: 1 addition & 1 deletion scripts/6_db_restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function main() {

echo "$(gettext 'Start restoring database'): $DB_FILE"

if ! docker ps | grep jms_&>/dev/null; then
if ! docker ps | grep -w "jms_core" &>/dev/null; then
create_db_ops_env
flag=1
fi
Expand Down

0 comments on commit 5a45ed4

Please sign in to comment.