Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if [ "$1" == "" ]; then
- echo "Missing .war file"
- exit 1
- fi
- begin=`pwd`
- stopTomcat
- file=$(basename $1)
- echo "Deploying $file..."
- echo
- fileName=${file%.war}
- cd $CATALINA_HOME/webapps/
- echo "Deleting $file..."
- rm -rf $file
- echo DONE
- echo
- echo "Deleting $fileName..."
- rm -rf $fileName
- echo DONE
- echo
- cd $begin
- echo "Copying $1 to $CATALINA_HOME/webapps/..."
- cp $1 $CATALINA_HOME/webapps/
- echo DONE
- echo
- startTomcat
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement