Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
...
  • 15 commits
  • 3 files changed
  • 0 commit comments
  • 3 contributors
Showing with 17 additions and 2 deletions.
  1. +13 −1 apache2.rb
  2. +1 −1 node.rb
  3. +3 −0 packages.rb
View
14 apache2.rb
@@ -229,11 +229,23 @@ def disable_mod(mod)
dep 'apache2 runs on boot' do
requires 'apache2'
- requires 'rcconf'
+ requires 'rcconf.managed'
met? { shell("rcconf --list").val_for('apache2') == 'on' }
meet { sudo "update-rc.d apache2 defaults" }
end
+dep "remove apache2 from autostart" do
+ requires 'apache2'
+ requires 'rcconf.managed'
+ met? { shell("rcconf --list").val_for('apache2') == 'off' }
+ meet { sudo "update-rc.d -f apache2 remove" }
+end
+
+dep "apache2 stop" do
+ met? { apache2_running? }
+ meet { apachectl "stop" }
+end
+
dep 'passenger vhost configured.apache2' do
requires 'apache2 passenger mods configured'
View
2 node.rb
@@ -6,4 +6,4 @@
dep 'node066.src' do
source "http://nodejs.org/dist/v0.6.6/node-v0.6.6.tar.gz"
provides 'node', 'node-waf'
-end
+end
View
3 packages.rb
@@ -78,7 +78,10 @@
}
provides 'pcretest'
end
+
+dep "dialog.managed"
dep 'rcconf.managed' do
+ requires 'dialog.managed'
installs { via :apt, 'rcconf' }
end
dep 'screen.managed'

No commit comments for this range

Something went wrong with that request. Please try again.