Skip to content

Instantly share code, notes, and snippets.

@mtheoryx
Created February 22, 2013 20:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save mtheoryx/5016451 to your computer and use it in GitHub Desktop.
Save mtheoryx/5016451 to your computer and use it in GitHub Desktop.
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
Copy link
Author

mtheoryx 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
Copy link
Author

mtheoryx 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