SHARE
TWEET

Untitled

a guest Jul 21st, 2017 133 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if [ "$1" == "" ]; then
  2.     echo "Missing .war file"
  3.     exit 1
  4. fi
  5.  
  6. begin=`pwd`
  7.  
  8. stopTomcat
  9.  
  10. file=$(basename $1)
  11. echo "Deploying $file..."
  12. echo
  13.  
  14. fileName=${file%.war}
  15.  
  16. cd $CATALINA_HOME/webapps/
  17. echo "Deleting $file..."
  18. rm -rf $file
  19. echo DONE
  20. echo
  21.  
  22. echo "Deleting $fileName..."
  23. rm -rf $fileName
  24. echo DONE
  25. echo
  26.  
  27. cd $begin
  28. echo "Copying $1 to $CATALINA_HOME/webapps/..."
  29. cp $1 $CATALINA_HOME/webapps/
  30. echo DONE
  31. echo
  32.  
  33. startTomcat
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top