summaryrefslogtreecommitdiff
path: root/server-build/my-simple-cdd/profiles/wootaler.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'server-build/my-simple-cdd/profiles/wootaler.postinst')
-rwxr-xr-xserver-build/my-simple-cdd/profiles/wootaler.postinst21
1 files changed, 16 insertions, 5 deletions
diff --git a/server-build/my-simple-cdd/profiles/wootaler.postinst b/server-build/my-simple-cdd/profiles/wootaler.postinst
index 0b8f04b..8887fb9 100755
--- a/server-build/my-simple-cdd/profiles/wootaler.postinst
+++ b/server-build/my-simple-cdd/profiles/wootaler.postinst
@@ -20,10 +20,24 @@ cat > /usr/local/bin/firstboot-script.sh <<EOF
set -eu
+echo "Giving system time to complete setup"
+sleep 60
+
echo "## Launching WooCommerce-Taler installation ##"
-cd /tmp
-git clone git://git.taler.net/woocommerce-taler.git
+cd /root
+if test -x woocommerce-taler
+then
+ echo "already exists, skipping"
+else
+ git clone git://git.taler.net/woocommerce-taler.git
+fi
+if test -x gnu-taler-payment-for-woocommerce
+then
+ echo "already exists, skipping"
+else
+ git clone git://git.taler.net/gnu-taler-payment-for-woocommerce.git
+fi
# Get the necessary scripts
yes | tr y '\n' | woocommerce-taler/server-build/QEMU-autobuild/buildWooTalerServer.sh
@@ -32,9 +46,6 @@ yes | tr y '\n' | woocommerce-taler/server-build/QEMU-autobuild/buildWebstore.sh
yes | tr y '\n' | woocommerce-taler/server-build/QEMU-autobuild/buildReclaim.sh
-# Clean up
-# rm -rf /tmp/woocommerce-taler.git
-
# Remove self from boot sequence
rm /etc/systemd/system/firstboot-wootaler.service