lifecycle: fix permissions for unittest xml

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-06-09 16:03:51 +02:00
parent a7adeb917e
commit b73de96aa6
1 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,8 @@ elif [[ "$1" == "bash" ]]; then
/bin/bash /bin/bash
elif [[ "$1" == "test" ]]; then elif [[ "$1" == "test" ]]; then
pip install --no-cache -r requirements-dev.txt pip install --no-cache -r requirements-dev.txt
touch /unittest.xml
chown authentik:authentik /unittest.xml
check_if_root "python -m manage test authentik" check_if_root "python -m manage test authentik"
else else
python -m manage "$@" python -m manage "$@"