You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mailu/docs
bors[bot] 2785bca1f4
Merge #883
883: Admin create user enhancement r=mergify[bot] a=cr1st1p

## What type of PR?
Enhancement

## What does this PR do?
It allows the admin docker image to also create the admin user.
The idea is that in my kubernetes setup, I do not want to manually do anything, as such, I need a way for the admin user to also be created automatically without me getting inside the pod.
So I had to change the manage.py function that creates the user to allow different 'modes' (me, I'll be using 'ifmissing') and also start.py to call that functionality if appropriate environment variables are present.

So now, in my Deployment, I add 3 more environment variables and I get the admin user created, IF not already present.

### Related issue(s)
none?

## Prerequistes
Before we can consider review and merge, please make sure the following list is done and checked.
If an entry in not applicable, you can check it or remove it from the list.

- [x] In case of feature or enhancement: documentation updated accordingly
- [x] Unless it's docs or a minor change: place entry in the [changelog](CHANGELOG.md), under the latest un-released version.


Co-authored-by: cristi <cristi.posoiu@gmail.com>
Co-authored-by: cr1st1p <cristi.posoiu@gmail.com>
Co-authored-by: Tim Möhlmann <muhlemmer@gmail.com>
5 years ago
..
_templates Restore VERSION_TAG template 6 years ago
assets Add files via upload 6 years ago
compose Hopefully improved documentation around initial admin account creation. 6 years ago
contributors Merge #1010 6 years ago
kubernetes Merge #883 5 years ago
swarm Fix typo in link 6 years ago
.env Add deploy settings for server 6 years ago
Dockerfile Remove healthcheck 6 years ago
cli.rst Update password in commandline 5 years ago
conf.py Update docs, travis and mergify for 1.7 release 5 years ago
configuration.rst Merge #883 5 years ago
database.rst Added documentation for external mysql db 6 years ago
demo.rst Fix typo in demo.rst 6 years ago
dns.rst typo. 6 years ago
docker-compose.yml Make docker-compose.yml for setup and docs development friendly 6 years ago
faq.rst Merge #1030 5 years ago
features.rst Add a page with features and screenshots 7 years ago
general.rst Fix the rst syntax for most documentation 7 years ago
index.rst Corrected 'adminitration' to 'administration' 6 years ago
maintain.rst Include a doc section for external certbot 6 years ago
nginx.conf Build the documentation as a Docker image 6 years ago
releases.rst 1.6 release notes (#845) 6 years ago
requirements.txt Revert "Add a Dockerfile for buliding the docs" 6 years ago
reverse.rst Fixed C&P issue 5 years ago
setup.rst DMARC regenerated in admin dash (what about cli?) 6 years ago