Permalink
Browse files

adding some variables for easier config.

  • Loading branch information...
staticsafe committed May 13, 2012
1 parent 9814736 commit de9e6e196397b983f04bd9edf4b7bbaddac7e4f0
Showing with 3 additions and 1 deletion.
  1. +3 −1 flushmemcache
View
@@ -1,9 +1,11 @@
#!/usr/bin/env bash
#Small script to flush Memcached
+memcachehost="localhost"
+memcacheport="11211"
if pgrep memcached &> /dev/null; then
- nc -w 3 localhost 11211 <<< flush_all
+ nc -w 3 $memcachehost $memcacheport <<< flush_all
printf '%s\n' 'Memcached cache was flushed! :)'
else
printf '%s\n' 'Memcached is not running!'

0 comments on commit de9e6e1

Please sign in to comment.