Created
October 30, 2018 02:55
-
-
Save nachogarrone/6beaa7663771fa043db82a1e5bcd79b4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
declare -a arr=("clt-guard-00" "clt-guard-01" "clt-guard-02" "clt-guard-08" "clt-guard-09" "clt-guard-10" "clt-guard-11" "clt-guard-12" "clt-guard-13") | |
for cluster in "${arr[@]}" | |
do | |
echo "PUT http://${cluster}:9290/collect/payment-methods/cache/overlapped/reload" | |
curl -X PUT \ | |
http://${cluster}:9290/collect/payment-methods/cache/overlapped/reload \ | |
-H 'Cache-Control: no-cache' \ | |
-H 'Content-Type: application/json' \ | |
-H 'X-Client: refresh-bash' | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment