Skip to content
Snippets Groups Projects
README.md 761 B
Newer Older
Stéphane Diemer's avatar
Stéphane Diemer committed
# EnvSetup

Script to setup and configure softwares used in our servers.

## Dependencies

* python3

## How to add a software setup

* Add a folder next to "envsetup.py" named using the following pattern: "<number>.<name>".
Stéphane Diemer's avatar
Stéphane Diemer committed
    The number should not be used by any other setup.
Stéphane Diemer's avatar
Stéphane Diemer committed

Stéphane Diemer's avatar
Stéphane Diemer committed
* Add a file named "0_setup.py" or "0_setup.sh" in this folder.
Stéphane Diemer's avatar
Stéphane Diemer committed

Stéphane Diemer's avatar
Stéphane Diemer committed
* If the file you use is the python one ("0_setup.py"), you should add a function named setup in it.
    The file will be run with python3.
    For example:
    ```python
    def setup(interactive=True):
        pass
    ```

## Important notes

* All setup actions should be safe to be run multiple times (to allow reconfiguration of the service).
* All the adjustable configurations must be in the "conf.sh" file.