Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. FORMULA="kubernetes"
  4.  
  5. if [ -d "/root/salt-formula-$FORMULA" ]; then
  6.  
  7. echo "Going to replace packaged formula '$FORMULA'"
  8.  
  9. rm -rfv "/usr/share/salt-formulas/{env,reclass/service}/$FORMULA"
  10.  
  11. ln -v -s "/root/salt-formula-$FORMULA/$FORMULA" "/usr/share/salt-formulas/env/$FORMULA"
  12. ln -v -s "/root/salt-formula-$FORMULA/metadata/service/" "/usr/share/salt-formulas/reclass/service/$FORMULA"
  13. else
  14. echo "Stopped, please clone formula repo to /root/salt-formula-$FORMULA!"
  15. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement