Created
February 22, 2013 20:50
-
-
Save mtheoryx/5016451 to your computer and use it in GitHub Desktop.
Simple function to clean traces of Sakai from your tomcat install.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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." | |
} |
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
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.