diff --git a/customize b/customize new file mode 100755 index 0000000..f00c76c --- /dev/null +++ b/customize @@ -0,0 +1,26 @@ +#!/usr/bin/bash +# +# Put customizations to your image in this file. + +PATH=/opt/local/gnu/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/usr/sbin + +# Exit if any commands fail +set -o errexit + +# Configuring image specific packages +echo "* Configuring image specific packages."; + +# Remove default apache configuration +echo "* Remove default apache configuration."; +rm -rf /opt/local/etc/httpd/* + +echo "* Enable mdata-setup script" +svccfg import /tmp/mdata-setup.xml +rm /tmp/mdata-setup.xml + +# Clean up +echo "* Cleaning up." +rm -rf /root/* + +# Prepare image for provisioning +sm-prepare-image -y