1. #!/bin/bash
  2.  
  3. if [[$BRANCH == '']]; then
  4. GIT_BRANCH = "master"
  5. else
  6. GIT_BRANCH = $BRANCH
  7. if
  8.  
  9. if [ -d "/tmp/clone/"]; then
  10. rm -rf "/tmp/clone"
  11. if
  12.  
  13. mkdir "/tmp/clone/"
  14.  
  15. git clone -b "$GIT_BRANCH" $GIT_URL /tmp/clone/
  16.  
  17. cd "/tmp/clone/"
  18.  
  19. rsync -rl --exclude=private --exclude=".git" --exclude=".gitignore" /tmp/clone/ /var/www/sites/welly.io/htdocs/
  20.  
  21. echo "Removing clone directory..."
  22. rm -rf /tmp/clone/
  23.  


ps aux | grep -ie amarok | awk '{print $2}' | xargs kill -9 


kill -9 $(pgrep amarok)



+ Recent posts