Add check for .sql backup files

This commit is contained in:
Ryan Dewhurst
2018-06-07 17:17:39 +02:00
parent 85b491472a
commit 0e73774bd9
3 changed files with 40 additions and 0 deletions

View File

@@ -255,6 +255,12 @@ def main
end
end
unless wp_target.sql_file_export.empty?
wp_target.sql_file_export.each do |file|
puts critical("SQL export file found: #{file}")
end
end
code = get_http_status(wp_target.humans_url)
if code == 200
puts info("humans.txt available under: #{wp_target.humans_url} [HTTP #{code}]")