Stop splunk before overwriting it, don't stop chef if splunk isn't running

This commit is contained in:
Raphael 2010-11-17 12:08:37 -08:00
parent b643046b5b
commit ff24f46114

View file

@ -6,6 +6,10 @@ execute "Untar splunk" do
command "cd /tmp/install && tar -xvf splunk-4.1.5-85165-Linux-x86_64.tgz"
end
execute "Stop old splunk" do
command "/opt/splunk/bin/splunk stop || true"
end
execute "Remove old splunk" do
command "rm -rf /opt/splunk"
end