Skip to content

Instantly share code, notes, and snippets.

@comuttun
Created August 31, 2014 05:27
Show Gist options
  • Select an option

  • Save comuttun/4d0c4b4265b4cca1e4f9 to your computer and use it in GitHub Desktop.

Select an option

Save comuttun/4d0c4b4265b4cca1e4f9 to your computer and use it in GitHub Desktop.
service "httpd" do
supports :restart => true
action :nothing
end
file "/etc/httpd/conf.d/proxy_ajaxterm.conf" do
action :delete
only_if { File.exists?("/etc/httpd/conf.d/proxy_ajaxterm.conf") }
notifies :restart, "service[httpd]"
end
service "ajaxterm" do
action [:disable, :stop]
only_if "chkconfig --list ajaxterm"
end
file "/etc/init.d/ajaxterm" do
action :delete
only_if { File.exists?("/etc/init.d/ajaxterm") }
end
file "/usr/local/bin/ajaxterm" do
action :delete
only_if { File.exists?("/usr/local/bin/ajaxterm") }
end
directory "/usr/local/share/ajaxterm" do
action :delete
recursive true
only_if { File.exists?("/usr/local/share/ajaxterm") }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment