From 451bd8e32868d2898a6d4a5f89177c1cf17346b3 Mon Sep 17 00:00:00 2001 From: Thomas Merkel Date: Mon, 4 Aug 2014 16:59:58 +0200 Subject: [PATCH] remove unused httpd config files --- customize | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/customize b/customize index 52e3ad2..3046db5 100755 --- a/customize +++ b/customize @@ -11,15 +11,30 @@ set -o errexit # Configuring image specific packages echo "* Configuring image specific packages." -mkdir -p /var/www/kumquat +mkdir -p /opt/kumquat -# 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 +# Download and extract kumquat to /opt/kumquat +echo "* Download and extract kumquat to /opt/kumquat" +curl -L "https://github.com/wiedi/kumquat/archive/v${KUMQUAT_VERSION}.tar.gz" | tar xz -C /opt/kumquat --strip-components=1 # Setup permissions for kumquat folder echo "* Setup permissions for kumquat folder" -chown -R www:www /var/www/kumquat +chown -R www:www /opt/kumquat + +# Remove unused httpd config files +echo "* Remove unused httpd config files" +rm /opt/local/etc/httpd/{\ + httpd-autoindex.conf,\ + httpd-dav.conf,\ + httpd-default.conf,\ + httpd-info.conf,\ + httpd-languages.conf,\ + httpd-manual.conf,\ + httpd-mpm.conf,\ + httpd-multilang-errordoc.conf,\ + httpd-ssl.conf,\ + httpd-userdir.conf,\ + httpd-vhosts.conf} echo "* Cleaning up" rm -rf /root/*