diff --git a/recipes/default.rb b/recipes/default.rb index 8b2ce7b7323a59b36ef533673df458b0b83c0f6d..03d0c4ba8620d2b1466a228b4e50b9c1029b9080 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -506,7 +506,6 @@ node['typo3_site']['sync_databases'].each do |database_data| bash 'Import Dump for ' + database_data['database_name'] do code <<-EOF mysql -h 127.0.0.1 -u root -proot #{database_data['database_name']} < #{database_data['dump_local']} - rm -f #{database_data['dump_local']} EOF action :run end @@ -532,6 +531,15 @@ node['typo3_site']['sync_databases'].each do |database_data| end end end + + if database_data['dump_hostname'] and database_data['dump_local'] + bash 'Remove downloaded ' + database_data['dump_local'] do + code <<-EOF + rm -f #{database_data['dump_local']} + EOF + action :run + end + end end ##################