1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-12-01 21:45:51 +01:00
ldapcherry/docs/install.rst

45 lines
1.2 KiB
ReStructuredText
Raw Normal View History

2014-06-02 23:10:19 +02:00
Install
=======
From the sources
----------------
Download the latest release from `GitHub <https://github.com/kakwa/ldapcherry/releases>`_.
.. sourcecode:: bash
$ tar -xf ldapcherry*.tar.gz
$ cd ldapcherry*
$ python setup.py install
2017-04-06 21:53:58 +02:00
Alternatively, you can install from git:
2014-06-02 23:10:19 +02:00
.. sourcecode:: bash
2017-04-06 21:53:58 +02:00
$ git clone https://github.com/kakwa/ldapcherry
$ cd ldapcherry
$ python setup.py install
2014-06-02 23:10:19 +02:00
Installed files
---------------
ldapCherry install directories are:
* **/etc/ldapcherry/** (configuration)
* **dist-package** or **site-packages** of your distribution (LdapCherry modules)
* **/usr/share/ldapcherry/** (static content (css, js, images...) and templates)
These directories can be changed by exporting the following variables before launching the install command:
.. sourcecode:: bash
2017-04-06 21:53:58 +02:00
# optional, default sys.prefix + 'share' (/usr/share/ on most Linux)
2015-07-20 01:48:37 +02:00
$ export DATAROOTDIR=/usr/local/share/
2017-04-06 21:53:58 +02:00
# optional, default /etc/
2014-06-02 23:10:19 +02:00
$ export SYSCONFDIR=/usr/local/etc/
2017-04-06 21:53:58 +02:00
.. note:: if --root is passed, the install prefix is honored for these directories
.. warning:: If you change these directories, **templates.dir** and **tools.staticdir.dir** in *ldapcherry.ini* need to be modified accordingly.