idhub.entrypoint.sh: add send_mail_admins

warn admin that it should re-enter password to keep the service working
This commit is contained in:
pedro 2024-03-07 14:09:13 +01:00
parent 5325b20e45
commit 4983e3c89f

View file

@ -27,6 +27,9 @@ deployment_strategy() {
echo "INFO: detected EXISTING deployment"
./manage.py makemigrations
./manage.py migrate
# warn admin that it should re-enter password to keep the service working
./manage.py send_mail_admins
else
# move the migrate thing in docker entrypoint
# inspired by https://medium.com/analytics-vidhya/django-with-docker-and-docker-compose-python-part-2-8415976470cc