From 4983e3c89fa4c7f8c8fa59f0d2a0ac58734b5fb0 Mon Sep 17 00:00:00 2001 From: pedro Date: Thu, 7 Mar 2024 14:09:13 +0100 Subject: [PATCH] idhub.entrypoint.sh: add send_mail_admins warn admin that it should re-enter password to keep the service working --- docker/idhub.entrypoint.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker/idhub.entrypoint.sh b/docker/idhub.entrypoint.sh index 9e74f83..9aa4b6d 100755 --- a/docker/idhub.entrypoint.sh +++ b/docker/idhub.entrypoint.sh @@ -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