Skip to content

Commit

Permalink
add download for kumquat
Browse files Browse the repository at this point in the history
  • Loading branch information
drscream committed Aug 4, 2014
1 parent 6ca0fe1 commit f5bc87a
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions customize
Original file line number Diff line number Diff line change
@@ -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/*
Expand Down

0 comments on commit f5bc87a

Please sign in to comment.