diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-10-16 21:34:01 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-10-16 21:34:01 +0200 |
commit | 56fb7c2e4b5abaf3b7d8928bde96e564e405dc51 (patch) | |
tree | 0e4124ff2fc52f6b3f3c49f3776fa8017c3b1512 /server-build | |
parent | 1c94dd087dbe895783e53fd576df45a128c6801a (diff) | |
download | woocommerce-taler-56fb7c2e4b5abaf3b7d8928bde96e564e405dc51.tar.gz woocommerce-taler-56fb7c2e4b5abaf3b7d8928bde96e564e405dc51.tar.bz2 woocommerce-taler-56fb7c2e4b5abaf3b7d8928bde96e564e405dc51.zip |
enable third snippet in autobuild
Diffstat (limited to 'server-build')
-rwxr-xr-x | server-build/QEMU-autobuild/buildWebstore.sh | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/server-build/QEMU-autobuild/buildWebstore.sh b/server-build/QEMU-autobuild/buildWebstore.sh index e47884e..e46327a 100755 --- a/server-build/QEMU-autobuild/buildWebstore.sh +++ b/server-build/QEMU-autobuild/buildWebstore.sh @@ -181,17 +181,32 @@ EOF # Add Snippet to integrate OIDC with WooCommerce. # Note: this will break the shop badly if run twice, # recovery by deleting the duplicate entries! +SNIPPET=`cat ${ORIGIN}/woocommerce-taler/snippets/oidc-woocommerce.php` + +cat | mysql wordpress <<EOF +PREPARE stmt FROM 'INSERT INTO wp_snippets (name, description, code, scope, priority, active, modified) VALUES (?,?,?,?,?,?,?)'; +SET @name='OIDC integration with WooCommerce'; +SET @description='This snippet adds the integration between OIDC and WooCommerce, allowing users to import their shipping details from OIDC into WooCommerce during checkout'; +SET @code="$SNIPPET"; +EXECUTE stmt USING @name, @description, @code, "global", 10, 1, NOW(); +EOF + + +# Add Snippet to integrate OIDC with re:claimID. +# Note: this will break the shop badly if run twice, +# recovery by deleting the duplicate entries! SNIPPET=`cat ${ORIGIN}/woocommerce-taler/snippets/oidc-reclaim.php` cat | mysql wordpress <<EOF PREPARE stmt FROM 'INSERT INTO wp_snippets (name, description, code, scope, priority, active, modified) VALUES (?,?,?,?,?,?,?)'; -SET @name='Re:ClaimID integration with WooCommerce'; -SET @description='This snippet adds the integration between Re:ClaimID and WooCommerce, allowing users to import their shipping details from Re:ClaimID into WooCommerce during checkout'; +SET @name='Re:ClaimID integration with OIDC'; +SET @description='This snippet adds the integration between Re:ClaimID and OIDC, telling users to use Re:claimID to login'; SET @code="$SNIPPET"; EXECUTE stmt USING @name, @description, @code, "global", 10, 1, NOW(); EOF + # Configure gnutaler Plugin sudo -u www-data wp wc --user=admin payment_gateway update gnutaler --enabled=true --settings='{"title":"GNU Taler","GNU_Taler_Backend_URL":"http:\/\/backend.demo.taler.net\/","GNU_Taler_Backend_API_Key":"Sandbox","Payment_url":"payto:\/\/x-taler-bank\/bank.demo.taler.net\/Merchant","merchant_name":"GNU Taler WooCommerce Demonstrator"}' |