1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-12 10:45:38 +02:00
Mailu/tests
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>
2019-08-21 20:58:25 +00:00
..
certs Implemented sending/reading email(local tests) 2018-11-01 11:40:54 +02:00
compose Tests for initial admin create 2019-08-21 17:50:14 +03:00
alias_test.py Removed unused imports and fixed indentation 2019-01-11 12:13:52 +02:00
build.yml Revert "Stop building certdumper since it is not supported by traefik anymore" 2019-07-25 22:47:36 +03:00
deploy.sh Use bors-ng to create and upload test images 2019-01-24 15:23:25 +02:00
email_test.py Fix indentation 2019-01-11 12:50:41 +02:00
forward_test.py Removed unused imports and fixed indentation 2019-01-11 12:55:47 +02:00
reply_test.py Unused imports and bad indentation 2019-01-11 12:57:45 +02:00
requirements.txt Migrate test script from shell to python 2018-10-25 15:27:09 +03:00
smtp.py Add a very simple test script for sending mails 2018-09-27 07:52:43 +02:00