Permalink
Browse files

Added option :after to configuration file.

Modified Script to execute commands passed in :after configuration option.
  • Loading branch information...
1 parent 1aa6d7b commit 9508f0c2a838c37c7268e95a40e0a9d73b376665 @lwille committed Mar 13, 2010
Showing with 4 additions and 0 deletions.
  1. +1 −0 etc/security/hosts_allowed.yml
  2. +3 −0 usr/sbin/resolver
@@ -20,6 +20,7 @@ files:
path: '/etc/postgresql/8.3/main/pg_hba.conf'
comment: "# #{name}/#{host}"
line: "hostssl\tall\t\tall\t\t#{ip}/32\tmd5"
+ after: "kill -HUP `cat /var/run/postgresql/8.3-main.pid`"
ssh:
path: '/etc/security/access.conf'
comment: "# #{name}/#{host}"
View
@@ -24,4 +24,7 @@ config['files'].each do |k,file|
end
puts "\tclosing #{file['path']}"
fd.close
+ unless file['after'].nil? || file['after'].empty?
+ system file['after']
+ end
end

0 comments on commit 9508f0c

Please sign in to comment.