diff --git a/scripts/fetch-secrets.sh b/scripts/fetch-secrets.sh index eb01afe..bf218f0 100755 --- a/scripts/fetch-secrets.sh +++ b/scripts/fetch-secrets.sh @@ -68,7 +68,7 @@ PESAPAL_CONSUMER_KEY=$(s PESAPAL_CONSUMER_KEY) PESAPAL_CONSUMER_SECRET=$(s PESAPAL_CONSUMER_SECRET) PESAPAL_SANDBOX=$(s PESAPAL_SANDBOX) PESAPAL_IPN_URL=${FRONTEND_URL}/payments/webhook/pesapal/ipn -PESAPAL_CALLBACK_URL=${FRONTEND_URL}/payments/callback +PESAPAL_CALLBACK_URL=${FRONTEND_URL}/payments/webhook/pesapal/callback ORDER_SERVICE_URL=http://order_service:8004 USER_SERVICE_URL=http://user_service:8002 NOTIFICATION_SERVICE_URL=http://notification_service:8007 @@ -112,12 +112,30 @@ NOTIFICATION_SERVICE_URL=http://notification_service:8007 EOF chmod 600 "$REPO_DIR/services/message/.env" -# ── User / Produce / Order / Blog — only need INTERNAL_SECRET ───────────────── -for svc in user produce order blog; do +# ── User / Order — only need INTERNAL_SECRET ────────────────────────────────── +for svc in user order; do cat > "$REPO_DIR/services/$svc/.env" < "$REPO_DIR/services/produce/.env" < "$REPO_DIR/services/blog/.env" <