From 3393b9b174af4b3a9fc7e55442cce8a34f20ca0c Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Fri, 1 Aug 2025 09:40:13 +0200 Subject: [PATCH] Update tandoor-install.sh --- install/tandoor-install.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/install/tandoor-install.sh b/install/tandoor-install.sh index 130c7262..b81f70fa 100644 --- a/install/tandoor-install.sh +++ b/install/tandoor-install.sh @@ -84,11 +84,16 @@ POSTGRES_PORT=5432 POSTGRES_USER=$DB_USER POSTGRES_PASSWORD=$DB_PASS EOF -.venv/bin/python version.py +TANDOOR_VERSION="$(curl -s https://api.github.com/repos/TandoorRecipes/recipes/releases/latest | jq -r .tag_name)" +cat </opt/tandoor/cookbook/version_info.py +TANDOOR_VERSION = "$TANDOOR_VERSION" +TANDOOR_REF = "bare-metal" +VERSION_INFO = [] +EOF export $(cat /opt/tandoor/.env | grep "^[^#]" | xargs) -.venv/bin/python manage.py migrate -.venv/bin/python manage.py collectstatic --no-input -.venv/bin/python manage.py collectstatic_js_reverse +/opt/tandoor/.venv/bin/python manage.py migrate +/opt/tandoor/.venv/bin/python manage.py collectstatic --no-input +/opt/tandoor/.venv/bin/python manage.py collectstatic_js_reverse msg_ok "Installed Tandoor" msg_info "Creating Services"