From 68bf73bc77470b818a9463fff2e6bc42af4e7e9e Mon Sep 17 00:00:00 2001 From: Mate Majoros Date: Fri, 9 Jan 2026 08:54:34 +0200 Subject: [PATCH] downloading payments app only when needed --- scripts/create-site.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/create-site.sh b/scripts/create-site.sh index 08bfc824..43550cf4 100755 --- a/scripts/create-site.sh +++ b/scripts/create-site.sh @@ -38,9 +38,13 @@ docker compose exec -T backend bench --site "$SITE_NAME" install-app ai_tutor_ch echo "📦 Installing Academy LMS..." docker compose exec -T backend bench --site "$SITE_NAME" install-app lms -# Download Payments App -echo "📦 Downloading Payments App..." -docker compose exec -T backend bench get-app payments +# Download Payments App (if needed) +if docker compose exec -T backend test -d apps/payments; then + echo "✅ Payments App already downloaded" +else + echo "📦 Downloading Payments App..." + docker compose exec -T backend bench get-app payments +fi # Ensure Payments is installed into the Python environment (editable install) echo "🐍 Installing Payments Python package into venv..."