Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #Ask for the system
  4. echo "Which system do you want to update? (s = Staging / p = Prod)"
  5.  
  6. #Get result
  7. read system
  8.  
  9. if [ $system = "s" ]; then
  10. #Connect to Server and update staging
  11. ssh server 'su git_user; cd ~/staging.server.de/wp-content/; git pull'
  12. else
  13. #Connect to Server and update prod
  14. ssh server 'su git_user; cd ~/httpdocs/wp-content/; git pull'
  15. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement