|
Lines 43-48
get_apache_config_for()
Link Here
|
| 43 |
fi |
43 |
fi |
| 44 |
} |
44 |
} |
| 45 |
|
45 |
|
|
|
46 |
get_memcached_servers_for() |
| 47 |
{ |
| 48 |
local instance=$1 |
| 49 |
|
| 50 |
local apache_file=$(get_apache_config_for $instance) |
| 51 |
local memcached_servers=$( |
| 52 |
grep 'MEMCACHED_SERVERS' ${apache_file} | |
| 53 |
awk '{print $3}' | uniq |
| 54 |
) |
| 55 |
|
| 56 |
echo "${memcached_servers}" |
| 57 |
} |
| 58 |
|
| 59 |
get_memcached_namespace_for() |
| 60 |
{ |
| 61 |
local instance=$1 |
| 62 |
|
| 63 |
local apache_file=$(get_apache_config_for $instance) |
| 64 |
local memcached_namespace=$( |
| 65 |
grep 'MEMCACHED_NAMESPACE' ${apache_file} | |
| 66 |
awk '{print $3}' | uniq |
| 67 |
) |
| 68 |
|
| 69 |
echo "${memcached_namespace}" |
| 70 |
} |
| 71 |
|
| 46 |
get_opacdomain_for() |
72 |
get_opacdomain_for() |
| 47 |
{ |
73 |
{ |
| 48 |
local site=$1 |
74 |
local site=$1 |