Merge "Flush memcached on first listen IP only"

This commit is contained in:
Jenkins 2016-06-28 07:37:31 +00:00 committed by Gerrit Code Review
commit d5440d616c

View File

@ -20,4 +20,4 @@
tasks:
- name: Flush all of the cache in memcached
shell: |
echo 'flush_all' | nc $(awk '/\-l/ {print $2}' /etc/memcached.conf) $(awk '/\-p/ {print $2}' /etc/memcached.conf)
echo 'flush_all' | nc $(awk '/\-l/ {print $2}' /etc/memcached.conf | awk -F, '{ print $1 }') $(awk '/\-p/ {print $2}' /etc/memcached.conf)