Skip to content

Commit

Permalink
Check auto.cnf file existence (#51)
Browse files Browse the repository at this point in the history
Signed-off-by: SK Ali Arman <[email protected]>
  • Loading branch information
sheikh-arman authored Dec 24, 2024
1 parent 6fd9b04 commit b57fbe7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion init-script/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ rm -rf /run-scripts/*
cp /tmp/scripts/* /scripts
if [[ "$PITR_RESTORE" == "true" ]]; then
if [[ "$HOSTNAME" != *"-0" ]]; then
rm /var/lib/mysql/auto.cnf
if [[ -f /var/lib/mysql/auto.cnf ]]; then
rm /var/lib/mysql/auto.cnf
fi
fi
fi

0 comments on commit b57fbe7

Please sign in to comment.