[GIS.lab] adduser modification
Ivan Mincik
ivan.mincik at gmail.com
Thu Oct 1 03:13:27 PDT 2015
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 17.06.2015 15:12, Martin Landa wrote:
> Hi,
>
> when adding a new user via gislab-adduser I also want to create a
> new user schema in defined PostgreSQL database. Currently I have my
> own script which I run after gislab-adduser. But there will be
> better a way I guess, to register a new hook or something like
> that.
Hi Martin,
sorry for soooo late answer. I have just added [1] accounts
customization support. I will add more information to wiki ASAP.
In general, you can place your own scripts in specified directories
which will be executed before|after user account is added|deleted.
Also you can place files in 'files' directory which will be copied to
user's home directory.
You can use following variables in your scripts:
before-add, after-add:
GISLAB_USER GISLAB_USER_GIVEN_NAME GISLAB_USER_SURNAME
GISLAB_USER_EMAIL GISLAB_USER_DESCRIPTION
before-delete, after-delete:
GISLAB_USER
Also, you can use {+ GISLAB_USER +} variable for files in 'files'
directory which will be substituted with value in GISLAB_USER variable.
Do you have any ideas for improvements ?
1 - https://github.com/imincik/gis-lab/issues/426
- --
Ivan Minčík
ivan.mincik at gmail.com GPG: 0x79529A1E
http://imincik.github.io/0x79529A1E.key
ivan.mincik at gista.sk GPG: 0xD714B02C
http://imincik.github.io/0xD714B02C.key
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQEcBAEBAgAGBQJWDQdHAAoJEPfdLsR5Upoes8YH/2WuFuE2Pu7WOC/pqSuuhynD
AAfpVmvFUFHSnxg9UOMTVlJbDOoM5+sBVjjUH53Ys268LFObSsbjm6zbKg0XrwUX
ysSZLNxIlG20E9weSA3Q6CE4e2NbMLPU+Op1ndmOXms9OcdsM8G9onx4LbseyeZt
fwLjZj6xq4CImSgCkYJeaT/vp+QfhQ2WRofRR6LDZIoZ2f/aywaZrXF//qsNbKqH
mhLLvHIJv8gdjs0ebirNzmd+pzxy0uat6QbiGY3TNCFD07Xv39iR9LLdBPwSWIdi
0jGUYwqKU4MN+/xUNmpjGVqSPiAOcCAhDCgL6XCBVK53ffJX80CvaD9kFsD0Bdg=
=+zbl
-----END PGP SIGNATURE-----
More information about the GIS.lab
mailing list