Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Simple function to clean traces of Sakai from your tomcat install.
function cleantomcat() {
echo "Cleaning up: "${CATALINA_HOME}" ... "
echo "Cleaning components..."
rm -rf ${CATALINA_HOME}/components/*
echo "Cleaning shared lib..."
rm -rf ${CATALINA_HOME}/shared/lib/*
echo "Cleaning common lib..."
rm -rf ${CATALINA_HOME}/common/lib/sakai*.jar
echo "Cleaning server lib..."
rm -rf ${CATALINA_HOME}/server/lib/sakai*.jar
echo "Cleaning webapps..."
rm -rf ${CATALINA_HOME}/webapps/*
echo "Cleaning temp..."
rm -rf ${CATALINA_HOME}/temp/*
echo "Cleaning work..."
rm -rf ${CATALINA_HOME}/work/*
echo "Tomcat resources now clean."
}
@mtheoryx

This comment has been minimized.

Copy link
Owner Author

commented Mar 1, 2013

FYI this does not clean ALL requirements out. It seems there are a bunch of Indies that don't start with sakai* that will also need cleaned out.

@mtheoryx

This comment has been minimized.

Copy link
Owner Author

commented Mar 1, 2013

Also, this would be much better as a maven goal, IMHO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.