Selaa lähdekoodia

mycfn file to be removed after test

Jaap Marcus 5 vuotta sitten
vanhempi
sitoutus
6970c85c97
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      bin/v-add-database-host

+ 2 - 1
bin/v-add-database-host

@@ -41,7 +41,8 @@ is_mysql_host_alive() {
     
     
     chmod 600 $mycnf
     chmod 600 $mycnf
     mysql --defaults-file=$mycnf -e 'SELECT VERSION()' >/dev/null 2>&1
     mysql --defaults-file=$mycnf -e 'SELECT VERSION()' >/dev/null 2>&1
-
+    rm $mycnf
+    
     if [ "$?" -ne '0' ]; then
     if [ "$?" -ne '0' ]; then
         echo "Error: MySQL connection to $host failed"
         echo "Error: MySQL connection to $host failed"
         log_event "$E_CONNECT" "$ARGUMENTS"
         log_event "$E_CONNECT" "$ARGUMENTS"