Skip to content

Commit 20a0614

Browse files
authored
Check auto.cnf file existence (#48)
Signed-off-by: SK Ali Arman <[email protected]>
1 parent 6fd9b04 commit 20a0614

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

init-script/run.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ rm -rf /run-scripts/*
55
cp /tmp/scripts/* /scripts
66
if [[ "$PITR_RESTORE" == "true" ]]; then
77
if [[ "$HOSTNAME" != *"-0" ]]; then
8-
rm /var/lib/mysql/auto.cnf
8+
if [[ -f /var/lib/mysql/auto.cnf ]]; then
9+
rm /var/lib/mysql/auto.cnf
10+
fi
911
fi
1012
fi
1113

0 commit comments

Comments
 (0)