Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- username=$1
- # give option to enter username and password for customers
- # password will be prompted rather than an argument so that we can still
- # have customer enter in zoom conference call without us seeing the password.
- if [ "$#" -ne 1 ]
- then
- username=admin
- password=admin
- else
- echo -n "Enter password:"
- read -s password
- echo
- fi
- reason=EnableHelios
- declare -A gflagmap
- gflagmap[iris_ui_flags]="heliosEnabled=true"
- for i in "${!gflagmap[@]}"
- do
- iris_cli -username $username -password $password cluster update-gflag service-name=iris gflag-name=$i gflag-value=${gflagmap[$i]} reason=$reason
- if [ $? -ne 0 ]; then
- exit 1
- fi
- done
- allssh.sh iris.sh stop
- allssh.sh iris.sh start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement