[GIS.lab] adduser modification
Ivan Mincik
ivan.mincik at gmail.com
Thu Oct 1 12:18:41 PDT 2015
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 01.10.2015 12:13, Ivan Mincik wrote:
> 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.
Wiki page [2] was updated.
>
>
> Do you have any ideas for improvements ?
>
>
1 - https://github.com/imincik/gis-lab/issues/426
2 - https://github.com/imincik/gis-lab/wiki/Customization
- --
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
iQEcBAEBAgAGBQJWDYcQAAoJEPfdLsR5UpoepzcIAJWlrSyTTodFD1QotpR8Qgj+
t269/PnGoFHy/77+xAchSoZSiZBBBS8veIPn3ZFAY8spPPXGLOHCOzVjVxSbymrV
RE1jiCRkKGy0MU9QHv8eL+0r3temdT6KlsbYLJKnyK0jAXe6mBaTVyBqS44jtp5Z
2M8wJtyR/VlqcMEctkLqQadSz4pmMAKYeaSdnHkBiayyTySXPXSDtw+/sIUCvfUP
K7uViBJfJo9ou3jdiCf2ECZrtjXTtOo0PL6/L+Nppj/uakODvi9P7HO/c5PWWqbO
ZfghEbKySXINhVvZ57UIdTODqayzenoXmbuyRclKCqdE5fNC4agwbeIGDIMVVGw=
=bAXL
-----END PGP SIGNATURE-----
More information about the GIS.lab
mailing list