Skip to content

Instantly share code, notes, and snippets.

@albertsj1
Created December 22, 2009 20:59
Show Gist options
  • Save albertsj1/262045 to your computer and use it in GitHub Desktop.
Save albertsj1/262045 to your computer and use it in GitHub Desktop.
execute "postfix-aliases" do
command "/usr/bin/newaliases"
creates "/etc/mail/aliases.db"
action :nothing
end
remote_file "/etc/mail/aliases" do
source "aliases"
mode "0644"
notifies :run, resources(:execute => "postfix-aliases"), :immediately
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment