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
1 changed files with 3 additions and 0 deletions

View File

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