Skip to content

Commit 6970c85

Browse files
authored
mycfn file to be removed after test
1 parent 03dfb6e commit 6970c85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/v-add-database-host

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ is_mysql_host_alive() {
4141

4242
chmod 600 $mycnf
4343
mysql --defaults-file=$mycnf -e 'SELECT VERSION()' >/dev/null 2>&1
44-
44+
rm $mycnf
45+
4546
if [ "$?" -ne '0' ]; then
4647
echo "Error: MySQL connection to $host failed"
4748
log_event "$E_CONNECT" "$ARGUMENTS"

0 commit comments

Comments
 (0)