Skip to content

Commit

Permalink
fix: bug
Browse files Browse the repository at this point in the history
  • Loading branch information
DDSRem committed Feb 2, 2024
1 parent 2452587 commit b6b5fed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1020,14 +1020,14 @@ function install_emby_xiaoya_all_emby() {
CONTAINER_NAME=$(cat "${DDSREM_CONFIG_DIR}"/container_name/xiaoya_emby_name.txt)
TARGET_LOG_LINE_SUCCESS="All entry points have started"
while true; do
line=$(docker logs "$CONTAINER_NAME" 2>&1| tail -n 10)
line=$(docker logs "$CONTAINER_NAME" 2>&1 | tail -n 10)
echo "$line"
if [[ "$line" == *"$TARGET_LOG_LINE_SUCCESS"* ]]; then
break
fi
current_time=$(date +%s)
elapsed_time=$((current_time - start_time))
if (( elapsed_time >= 300 )); then
if ((elapsed_time >= 300)); then
break
fi
sleep 3
Expand Down

0 comments on commit b6b5fed

Please sign in to comment.