Created
October 15, 2013 12:43
-
-
Save tkuldeep/6991024 to your computer and use it in GitHub Desktop.
Shell script for clearing varnish cache on multiple web servers
This file contains hidden or 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 | |
# Clear complete cache in multiple web server | |
if [ -z $1] | |
then | |
curl -X BAN http://54.254.102.251/ | |
curl -X BAN http://54.251.248.135/ | |
# Clear cache of specific page | |
else | |
curl -X BAN http://54.254.102.251/$1 | |
curl -X BAN http://54.251.102.251/$1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment