Skip to content
Snippets Groups Projects
Commit fc7d04e1 authored by Paul Ilea's avatar Paul Ilea
Browse files

[TASK] Remove DB dump file only if downloaded

parent c8d38ada
No related branches found
No related tags found
No related merge requests found
......@@ -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
##################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment