sandcastle-ng

Scripts for the deployment of Sandcastle (GNU Taler)
Log | Files | Refs | README

commit 9a7bc7bbea4a33b5a9f6e8f33bf0c654a2ee9102
parent cc79e963dd18846c7aa3689331291517658a1375
Author: Florian Dold <florian@dold.me>
Date:   Tue,  9 Dec 2025 20:22:41 +0100

fix currency in drupal setup, use random password

Diffstat:
Mscripts/demo/setup-sandcastle.sh | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/scripts/demo/setup-sandcastle.sh b/scripts/demo/setup-sandcastle.sh @@ -1106,6 +1106,7 @@ systemctl enable --now taler-demo-donations systemctl enable --now php8.4-fpm DRUPAL_DB_PW=$(get_credential_pw db/drupal) +DRUPAL_ADMIN_PW=$(get_credential_pw drupal/admin) sudo -i -u postgres psql postgres -c "CREATE ROLE drupal WITH login;" || true sudo -i -u postgres psql postgres -c "ALTER ROLE drupal password '$DRUPAL_DB_PW';" @@ -1123,7 +1124,7 @@ if [[ ! -e /talerdata/sandcastle-drupal ]]; then cd /talerdata/sandcastle-drupal composer require drush/drush # This can take a ridiculous amount of time! - COMPOSER_PROCESS_TIMEOUT=0 composer exec -- drush site-install demo_umami --account-name=admin --account-pass=admin --account-mail=admin@localhost --db-url=pgsql://drupal:$DRUPAL_DB_PW@localhost/drupal --site-name=SandcastleUmami --yes + COMPOSER_PROCESS_TIMEOUT=0 composer exec -- drush site-install demo_umami --account-name=admin --account-pass=$DRUPAL_ADMIN_PW --account-mail=admin@localhost --db-url=pgsql://drupal:$DRUPAL_DB_PW@localhost/drupal --site-name=SandcastleUmami --yes fi chown -R www-data:www-data /talerdata/sandcastle-drupal/ @@ -1131,14 +1132,15 @@ chown -R www-data:www-data /talerdata/sandcastle-drupal/ ln -s /opt/turnstile /talerdata/sandcastle-drupal/web/modules/taler_turnstile cd /talerdata/sandcastle-drupal +composer exec -- drush upwd admin $DRUPAL_ADMIN_PW composer exec -- drush en taler_turnstile composer exec -- drush config:set taler_turnstile.settings access_token "$UMAMI_TOK" --yes composer exec -- drush config:set taler_turnstile.settings payment_backend_url "$PROTO://$MERCHANT_DOMAIN$PORT_SUFFIX/instances/umami/" --yes composer exec -- drush config:set --input-format=yaml taler_turnstile.settings enabled_content_types '["article", "recipe"]' --yes -snip=$(cat <<'EOF' +snip=$(cat <<'EOF' | sed "s/@CURRENCY@/$CURRENCY/" $storage = \Drupal::entityTypeManager()->getStorage('taler_turnstile_price_category'); -$e = $storage->create(['id'=>"normal", 'label'=>'Normal', 'description' => "Normal Article Price", 'prices' => ['%none%' => ['KUDOS' => '0.3']]]); +$e = $storage->create(['id'=>"normal", 'label'=>'Normal', 'description' => "Normal Article Price", 'prices' => ['%none%' => ['@CURRENCY@' => '0.3']]]); try { $e->save(); } catch (Exception $ex) {