From 725b0764c119ee3c52ae40f4e26934b6f6d71211 Mon Sep 17 00:00:00 2001 From: AndiMajore <andi.majore@googlemail.com> Date: Mon, 5 Dec 2022 11:12:26 +0100 Subject: [PATCH] fixed startup entry point Former-commit-id: c7553218534fb858626355b946373aeb8a60c406 --- scripts/docker-entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/docker-entrypoint.sh b/scripts/docker-entrypoint.sh index 8ce3250..13501e0 100755 --- a/scripts/docker-entrypoint.sh +++ b/scripts/docker-entrypoint.sh @@ -4,9 +4,9 @@ python3 manage.py makemigrations drugstone python3 manage.py migrate python3 manage.py createfixtures python3 manage.py cleanuptasks -if [[ -z "$DB_UPDATE_ON_START" ]] || [[ "$DB_UPDATE_ON_START" = "0" ]] +if [ -z "$DB_UPDATE_ON_START" ] || [ "$DB_UPDATE_ON_START" = "0" ] then -echo "Update on startup disabled!" + echo "Update on startup disabled!" else python3 manage.py populate_db --update -a python3 manage.py make_graphs -- GitLab