summaryrefslogtreecommitdiff
path: root/server-build/QEMU-autobuild
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-07-24 17:21:14 +0200
committerChristian Grothoff <christian@grothoff.org>2020-07-24 17:21:14 +0200
commit8770f610305315222015644fb77e3a0f14ab31d3 (patch)
tree1cd3d66c8d9ff3bae5b14f67a8048c33bbc7eaf6 /server-build/QEMU-autobuild
parent892664f8b31e02477f7126d9fcc455da41a8711a (diff)
downloadwoocommerce-taler-8770f610305315222015644fb77e3a0f14ab31d3.tar.gz
woocommerce-taler-8770f610305315222015644fb77e3a0f14ab31d3.tar.bz2
woocommerce-taler-8770f610305315222015644fb77e3a0f14ab31d3.zip
work on auto-installation
Diffstat (limited to 'server-build/QEMU-autobuild')
-rwxr-xr-xserver-build/QEMU-autobuild/buildWebstore.sh6
-rw-r--r--server-build/QEMU-autobuild/test.sh6
2 files changed, 4 insertions, 8 deletions
diff --git a/server-build/QEMU-autobuild/buildWebstore.sh b/server-build/QEMU-autobuild/buildWebstore.sh
index bc8a862..e0873ae 100755
--- a/server-build/QEMU-autobuild/buildWebstore.sh
+++ b/server-build/QEMU-autobuild/buildWebstore.sh
@@ -180,11 +180,11 @@ echo
SNIPPET=`cat KUDOS-WooCommerce-Support.php.txt`
cat | mysql wordpress <<EOF
-PREPARE stmt FROM 'INSERT INTO wp_snippets (name, description, code, scope, priority, active, modified, tags)';
+PREPARE stmt FROM 'INSERT INTO wp_snippets (name, description, code, scope, priority, active, modified) VALUES (?,?,?,?,?,?,?,?)';
SET @name='KUDOS currency support';
-SET @description='This snippets adds support for the KUDOS currency of the Taler demo to WooCommerce'
+SET @description='This snippets adds support for the KUDOS currency of the Taler demo to WooCommerce';
SET @code="$SNIPPET";
-EXECUTE stmt USING @name, @description, @code, "global", 0, 1, NOW(), "code-snippets-plugin";
+EXECUTE stmt USING @name, @description, @code, "global", 10, 1, NOW();
EOF
diff --git a/server-build/QEMU-autobuild/test.sh b/server-build/QEMU-autobuild/test.sh
index a80a6d5..8b07841 100644
--- a/server-build/QEMU-autobuild/test.sh
+++ b/server-build/QEMU-autobuild/test.sh
@@ -5,15 +5,11 @@ SNIPPET=`cat KUDOS-WooCommerce-Support.php.txt`
cat | mysql wordpress <<EOF
PREPARE stmt FROM 'INSERT INTO wp_snippets (name, description, code, scope, priority, active, modified, tags) VALUES (?,?,?,?,?,?,?,?)';
SET @name='KUDOS currency support';
-SET @description='This snippets adds support for the KUDOS currency of the Taler demo to WooCommerce'
+SET @description='This snippets adds support for the KUDOS currency of the Taler demo to WooCommerce';
SET @code="$SNIPPET";
EXECUTE stmt USING @name, @description, @code, "global", 0, 1, NOW(), "code-snippets-plugin";
EOF
-
-echo "INSERT INTO wp_snippets (name, description, code, scope, priority, active, modified, tags) VALUES ('KUDOS currency support','This snippets adds support for the KUDOS currency of the Taler demo to WooCommerce','${SQLSNIPPET}'
-mysql wordpress
-
echo
echo '2. You must set up WooCommerce defaults. To do this:'
echo ' a. Log into the WooTaler site in your host system at 127.0.0.1:9999/wp-admin/.'