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:
parent
5325b20e45
commit
4983e3c89f
|
@ -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
|
||||||
|
|
Reference in New Issue