Skip to content

Commit

Permalink
add default customize tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
drscream committed Jul 24, 2014
1 parent d9e0ac1 commit b968a8e
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions customize
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b968a8e

Please sign in to comment.