Skip to content

Commit

Permalink
fix: Use mysql_retry helper for MySQL init scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
pcfreak30 committed Jan 2, 2025
1 parent d21e6c5 commit a344fc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mysql-startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ start_mysql() {
log_info "Processing initialization file: $f"
# Expand environment variables in SQL files before executing
if [[ "$f" == *.sql ]]; then
if ! envsubst < "$f" | mysql_retry_auth root "${MYSQL_ROOT_PASSWORD}"; then
if ! envsubst < "$f" | mysql_retry --socket="${MYSQL_SOCKET}" "${MYSQL_ROOT_PASSWORD}"; then
log_error "Failed to process SQL file: $f"
return 1
fi
Expand Down

0 comments on commit a344fc7

Please sign in to comment.