From 0bf6660cd95555a50d8570602a23582ff4ca2cc7 Mon Sep 17 00:00:00 2001 From: SK Ali Arman Date: Tue, 10 Dec 2024 10:52:45 +0600 Subject: [PATCH] Update Member ID Removal Signed-off-by: SK Ali Arman --- init-script/run.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/init-script/run.sh b/init-script/run.sh index f2a8174..a9b062e 100755 --- a/init-script/run.sh +++ b/init-script/run.sh @@ -2,5 +2,10 @@ rm -rf /var/lib/mysql/lost+found rm -rf /run-scripts/* -rm /var/lib/mysql/auto.cnf cp /tmp/scripts/* /scripts +if [[ "$PITR_RESTORE" == "true" ]]; then + if [[ "$HOSTNAME" != *"-0" ]]; then + rm /var/lib/mysql/auto.cnf + fi +fi +