[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Post add-user hook?
- Subject: [cobalt-users] Post add-user hook?
- From: "Ben Liddicott" <ben.liddicott@xxxxxxxxxxxxxxxxxx>
- Date: Fri Nov 30 06:18:09 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
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