Skip to content

Commit 57db2c2

Browse files
authored
Check file existence (#49)
Signed-off-by: SK Ali Arman <[email protected]>
1 parent c672663 commit 57db2c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

init-script/run.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ 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

0 commit comments

Comments
 (0)