mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-09-21 00:01:14 +02:00
make clear_cache recipe idempotent
This commit is contained in:
parent
6a17501824
commit
7d054caae4
|
@ -4,9 +4,8 @@
|
|||
#
|
||||
# Copyright:: 2017, Rapid7, All Rights Reserved.
|
||||
|
||||
bash 'clear cache and backup that might contain sensitive information' do
|
||||
code <<-EOH
|
||||
cd /var/chef
|
||||
rm -R *
|
||||
EOH
|
||||
end
|
||||
# 'clear cache and backup that might contain sensitive information' do
|
||||
directory '/var/chef' do
|
||||
action :delete
|
||||
recursive true
|
||||
end
|
Loading…
Reference in New Issue
Block a user