Remove network variable export file after use

Otherwise the file is left in the current working directory.
This commit is contained in:
Markus Mäkelä 2018-09-26 20:21:17 +03:00
parent 809ab487b2
commit ee45900648
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -23,6 +23,7 @@ export node_N=`cat "$MDBCI_VM_PATH/$config_name"_network_config | grep node | gr
export maxscale_N=`cat "$MDBCI_VM_PATH/$config_name"_network_config | grep maxscale | grep network | wc -l`
sed "s/^/export /g" "$MDBCI_VM_PATH/$config_name"_network_config > "$curr_dir"/"$config_name"_network_config_export
source "$curr_dir"/"$config_name"_network_config_export
rm "$curr_dir"/"$config_name"_network_config_export
# User name and Password for Master/Slave replication setup (should have all PRIVILEGES)