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

Re: [cobalt-users] Post add-user hook?



there's no 'build in' functionality like that, such as an option you can
turn on or off.  it'd be easier just to add a few lines to the perl scripts
than trying to find an alternate method.
(scripts are in /usr/admserv/cgi-bin/.cobalt/)

-Rob


----- Original Message -----
From: "Ben Liddicott" <ben.liddicott@xxxxxxxxxxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Friday, November 30, 2001 8:10 AM
Subject: [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
>
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users