Guest User

Untitled

a guest
Feb 15th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. !#/bin/bash
  2.  
  3. echo "Which gitlab registry image to download?(default: xxxx.gitlab.com/xxxx)"
  4.  
  5. read -p 'Image Name: ' imagename
  6.  
  7. imagename=${imagename:-default-value:master}
  8.  
  9.  
  10. echo "Enter registry image name?(xxxxx:latest)"
  11.  
  12. read -p 'New image name?' newimagename
  13.  
  14. newimagename=${newimagename:-defaultvalue:latest}
  15.  
  16.  
  17.  
  18. #sshpass -p xxxxx scp -l 8192 -P 2020 ~/auto-pass-tmp.tgz xxx@xxxxx:~/xxxx/auto-pass-tmp.tgz
  19.  
  20. #sshpass -p xxxxx ssh -P 2222 -t -oStrictHostKeyChecking=no "xxx@xx.xx.xx" <<EOF
  21. # 'command1'
  22. # 'commmand2'
  23.  
  24. #EOF
Add Comment
Please, Sign In to add comment