Skip to content

Instantly share code, notes, and snippets.

@jlgreer
Created May 30, 2011 12:33
Show Gist options
  • Save jlgreer/998842 to your computer and use it in GitHub Desktop.
Save jlgreer/998842 to your computer and use it in GitHub Desktop.
aper ordering problem
files:
linux.svn_co_done::
"/etc/mail/access.aper"
copy_from => copy_std("$(dynamic)/aper/pub/access.aper","$(fileserver)","false","false"),
classes => if_repaired("new_access_db"),
perms => mode_owner_group("0444", "root", "root"),
action => actionsettings_fix_inform("inform");
commands:
linux::
"/usr/bin/svn co https://aper.svn.sourceforge.net/svnroot/aper $(dynamic)/aper/pub/remote"
contain => container_std("root", false),
classes => if_repaired("svn_co_done"),
action => actionsettings_fix_inform("inform");
"/bin/awk -F, '!/^#/{print \"To:\"$1,\" ERROR: Recipient blocked for phishing APER\"}' $(dynamic)/aper/pub/remote/phishing_reply_addresses | /bin/grep -vf $(dynamic)/aper/pub/whitelist.txt > $(dynamic)/aper/pub/access.aper"
contain => container_std("root", false),
action => actionsettings_fix_inform("inform");
new_access_db::
"/usr/bin/m4 -E /etc/mail/access >> /dev/null && /usr/bin/m4 /etc/mail/access | /usr/sbin/makemap hash /etc/mail/access"
contain => container_std("root", false),
action => actionsettings_fix_inform("inform");
....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment