[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] Post add-user hook?



Is there a Cobalt way (as opposed to hacking the source, which of course is possible) to have an admin-designed script run after
admin actions such as adding, editing or deleting users or virtual sites?

Or do I need to hack the code to make this happen?

Specifically, I want to create or remove a symlink for each email alias a user has:
On add:
ln -s /home/sites/siteNN/users/<user> /home/sites/siteNN/web/<emailalias>
On Remove:
if [ -l /home/sites/siteNN/web/<emailalias> ] ; then rm /home/sites/siteNN/web/<emailalias> ; fi

Cheers,
Ben Liddicott