Bug 10733: Follow up - unset variables from koha-sites.conf if USE_MEMCACHED=no
authorTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 13 Sep 2013 13:14:30 +0000 (10:14 -0300)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 30 Oct 2013 03:30:14 +0000 (03:30 +0000)
As configuration variables from koha-sites.conf overwrite the ones in the
koha-create script we need to unset them in case we have USE_MEMCACHED="no".

Sponsored-by: Universidad Nacional de Cordoba
Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Robin Sheat <robin@catalyst.net.nz>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
debian/scripts/koha-create

index e09b5ba..7f05eb0 100755 (executable)
@@ -343,6 +343,10 @@ EOF`
 
     echo $usage
     die $MSG
+else
+    # Unset memcached-related variables
+    MEMCACHED_SERVERS=""
+    MEMCACHED_PREFIX=""
 fi
 
 opacdomain="$OPACPREFIX$name$OPACSUFFIX$DOMAIN"