Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #Ask for the system
- echo "Which system do you want to update? (s = Staging / p = Prod)"
- #Get result
- read system
- if [ $system = "s" ]; then
- #Connect to Server and update staging
- ssh server 'su git_user; cd ~/staging.server.de/wp-content/; git pull'
- else
- #Connect to Server and update prod
- ssh server 'su git_user; cd ~/httpdocs/wp-content/; git pull'
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement