From 0fc92ab72d1bab7e84df9fc78e3cbd3f2abb3d97 Mon Sep 17 00:00:00 2001 From: Andreas Jonsson Date: Mon, 3 Oct 2016 09:08:03 +0100 Subject: [PATCH] Bug 17342: (bug 17262 follow-up) fix the way to retrieve memcached config from apache MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The problem is that the memcached configuration variables are extracted from the apache configuration file incorrectly so you get '"127.0.0.1:11211"' including double quotes as the servers parameter to memcached. Signed-off-by: Chris Cormack Note this only applies on 3.22.x but it does fix the problem Definitely needed for 3.22.12 Signed-off-by: Jonathan Druart Signed-off-by: Frédéric Demians --- debian/scripts/koha-functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/scripts/koha-functions.sh b/debian/scripts/koha-functions.sh index b6f12035d9..1e1d2096b9 100755 --- a/debian/scripts/koha-functions.sh +++ b/debian/scripts/koha-functions.sh @@ -50,7 +50,7 @@ get_memcached_servers_for() local apache_file=$(get_apache_config_for $instance) local memcached_servers=$( grep 'MEMCACHED_SERVERS' ${apache_file} | - awk '{print $3}' | uniq + awk -F'[\t "]+' '{print $4}' | head -n 1 ) echo "${memcached_servers}" @@ -63,7 +63,7 @@ get_memcached_namespace_for() local apache_file=$(get_apache_config_for $instance) local memcached_namespace=$( grep 'MEMCACHED_NAMESPACE' ${apache_file} | - awk '{print $3}' | uniq + awk -F'[\t "]+' '{print $4}' | head -n 1 ) echo "${memcached_namespace}" -- 2.39.5