From f5bc87a2eb920ceca026d66f6457701071499a9a Mon Sep 17 00:00:00 2001 From: Thomas Merkel Date: Mon, 4 Aug 2014 16:00:55 +0200 Subject: [PATCH] add download for kumquat --- customize | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/customize b/customize index 4a32385..52e3ad2 100755 --- a/customize +++ b/customize @@ -1,14 +1,25 @@ #!/usr/bin/bash -set -o errexit +# +# Put customizations to your image in this file. + +KUMQUAT_VERSION='0.1.0' + PATH=/opt/local/gnu/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/usr/sbin -echo "* Configuring image specific packages." +# Exit if any commands fail +set -o errexit +# Configuring image specific packages +echo "* Configuring image specific packages." +mkdir -p /var/www/kumquat -echo "* Enable mdata-setup script" -svccfg import /tmp/mdata-setup.xml -rm /tmp/mdata-setup.xml +# Download and extract kumquat to /var/www +echo "* Download and extract kumquat to /var/www" +curl -L "https://github.com/wiedi/kumquat/archive/v${KUMQUAT_VERSION}.tar.gz" | tar xz -C /var/www/kumquat --strip-components=1 +# Setup permissions for kumquat folder +echo "* Setup permissions for kumquat folder" +chown -R www:www /var/www/kumquat echo "* Cleaning up" rm -rf /root/*