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.
|
# Copyright:: 2017, Rapid7, All Rights Reserved.
|
||||||
|
|
||||||
bash 'clear cache and backup that might contain sensitive information' do
|
# 'clear cache and backup that might contain sensitive information' do
|
||||||
code <<-EOH
|
directory '/var/chef' do
|
||||||
cd /var/chef
|
action :delete
|
||||||
rm -R *
|
recursive true
|
||||||
EOH
|
|
||||||
end
|
end
|
Loading…
Reference in New Issue
Block a user