Skip to content

Instantly share code, notes, and snippets.

@stas
Created September 27, 2009 14:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stas/194799 to your computer and use it in GitHub Desktop.
Save stas/194799 to your computer and use it in GitHub Desktop.
Makefile for create_aliases.sh
clear: aliases.db
rm -f /tmp/aliases.tmp
aliases.db: aliases
postalias /etc/aliases
postfix reload
aliases.tmp: /etc/aliases.original
cat /etc/aliases.original > /tmp/aliases.tmp
/var/www/redmine/extra/mail_handler/create_aliases.sh >> /tmp/aliases.tmp
aliases: aliases.tmp
cp /tmp/aliases.tmp /etc/aliases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment