Rewording INITIAL_ADMIN_MODE documentation

master
Erriez 3 years ago
parent 83d9a81f0f
commit 4c52cf1d6a

@ -162,13 +162,13 @@ To have the account created automatically, you just need to define a few environ
- ``INITIAL_ADMIN_ACCOUNT``: the admin username: The first part of the e-mail address before the @.
- ``INITIAL_ADMIN_DOMAIN``: the domain appendix: Most probably identical to the ``DOMAIN`` variable.
- ``INITIAL_ADMIN_PW``: the admin password.
- ``INITIAL_ADMIN_MODE``: one of the options below how the code should behave when it will try to create the admin user:
- ``INITIAL_ADMIN_MODE``: use one of the options below for configuring how the admin account must be created:
- ``create``: (default) Will try to create user and will raise an exception if present.
- ``ifmissing``: if user exists, nothing happens, else it will be created.
- ``update``: user is created or, if it exists, its password gets updated.
- ``create``: (default) creates a new admin account and raises an exception when already exists.
- ``ifmissing``: creates a new admin account when the admin account does not exist.
- ``update``: creates a new admin account when it does not exist, or update the password of an existing admin account.
You should set ``INITIAL_ADMIN_MODE`` also to either ``update`` or ``ifmissing``. Leaving it with the default value could cause errors when restarting the system.
Note: It is recommended to set ``INITIAL_ADMIN_MODE`` to either ``update`` or ``ifmissing``. Leaving it with the default value will cause an error when the system is restarted.
An example:

Loading…
Cancel
Save