Guest User

Untitled

a guest
Aug 21st, 2019
76
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. update-cb () {
  4.         git -C ~/cloudbox fetch && git -C ~/cloudbox pull
  5. }
  6.  
  7. install-tag () {
  8.         UserPath=$PWD
  9.         cd ~/cloudbox && ansible-playbook cloudbox.yml --tags $1
  10.         cd $UserPath
  11. }
  12.  
  13. if [ $1 = "update" ]
  14. then
  15.         update-cb
  16. elif [ $1 = "install" ]
  17. then
  18.         install-tag $2
  19. else
  20.         echo "Unknown Command"
  21. fi
RAW Paste Data