Advertisement
Guest User

Untitled

a guest
Jan 10th, 2019
1,544
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. username=$1
  4. # give option to enter username and password for customers
  5. # password will be prompted rather than an argument so that we can still
  6. # have customer enter in zoom conference call without us seeing the password.
  7. if [ "$#" -ne 1 ]
  8. then
  9. username=admin
  10. password=admin
  11. else
  12. echo -n "Enter password:"
  13. read -s password
  14. echo
  15. fi
  16.  
  17. reason=EnableHelios
  18. declare -A gflagmap
  19. gflagmap[iris_ui_flags]="heliosEnabled=true"
  20.  
  21. for i in "${!gflagmap[@]}"
  22. do
  23. iris_cli -username $username -password $password cluster update-gflag service-name=iris gflag-name=$i gflag-value=${gflagmap[$i]} reason=$reason
  24. if [ $? -ne 0 ]; then
  25. exit 1
  26. fi
  27. done
  28.  
  29. allssh.sh iris.sh stop
  30. allssh.sh iris.sh start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement