Lines 50-56
get_memcached_servers_for()
Link Here
|
50 |
local apache_file=$(get_apache_config_for $instance) |
50 |
local apache_file=$(get_apache_config_for $instance) |
51 |
local memcached_servers=$( |
51 |
local memcached_servers=$( |
52 |
grep 'MEMCACHED_SERVERS' ${apache_file} | |
52 |
grep 'MEMCACHED_SERVERS' ${apache_file} | |
53 |
awk '{print $3}' | uniq |
53 |
awk -F'[\t "]+' '{print $4}' | head -n 1 |
54 |
) |
54 |
) |
55 |
|
55 |
|
56 |
echo "${memcached_servers}" |
56 |
echo "${memcached_servers}" |
Lines 63-69
get_memcached_namespace_for()
Link Here
|
63 |
local apache_file=$(get_apache_config_for $instance) |
63 |
local apache_file=$(get_apache_config_for $instance) |
64 |
local memcached_namespace=$( |
64 |
local memcached_namespace=$( |
65 |
grep 'MEMCACHED_NAMESPACE' ${apache_file} | |
65 |
grep 'MEMCACHED_NAMESPACE' ${apache_file} | |
66 |
awk '{print $3}' | uniq |
66 |
awk -F'[\t "]+' '{print $4}' | head -n 1 |
67 |
) |
67 |
) |
68 |
|
68 |
|
69 |
echo "${memcached_namespace}" |
69 |
echo "${memcached_namespace}" |
70 |
- |
|
|