From fd1e6f10820a1c465dbe84ae8d9df279da48b21d Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 27 May 2013 12:17:15 -0300 Subject: [PATCH] Bug 9890 - Fix koha-create and koha-create-dirs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As noted in the bug, there were three things to do: 1) koha-create: fill in __PLUGINS_DIR__ 2) leave the enable_plugins as off (at least for now) 3) koha-create-dirs: create the directory, set permissions (writeable by the koha user) - Fixed generate_config_file from koha-create so it correctly fills __PLUGINS_DIR__ in every installed file. - koha-create-dirs now creates the relevant dir. - enable_plugins is set to 0 currently, no action required here. Regarding the apache configurations, I'm not sure what you mean. Regards To+ Edit: got some minutes to test and re-check and found that the substitution didn't put the right data. Fixed Sponsored-by: Universidad Nacional de Córdoba Signed-off-by: Kyle M Hall --- debian/scripts/koha-create | 1 + debian/scripts/koha-create-dirs | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/debian/scripts/koha-create b/debian/scripts/koha-create index 8211e1c..5bedbf8 100755 --- a/debian/scripts/koha-create +++ b/debian/scripts/koha-create @@ -51,6 +51,7 @@ generate_config_file() { -e "s/__DB_PASS__/$mysqlpwd/g" \ -e "s/__UNIXUSER__/$username/g" \ -e "s/__UNIXGROUP__/$username/g" \ + -e "s/__PLUGINS_DIR__/\/var\/lib\/koha\/$name\/plugins/g" \ "/etc/koha/$1" > "$2" } diff --git a/debian/scripts/koha-create-dirs b/debian/scripts/koha-create-dirs index 06b7bff..52e2134 100755 --- a/debian/scripts/koha-create-dirs +++ b/debian/scripts/koha-create-dirs @@ -51,6 +51,7 @@ do userdir "$name" "/var/lib/koha/$name/biblios/register" userdir "$name" "/var/lib/koha/$name/biblios/shadow" userdir "$name" "/var/lib/koha/$name/biblios/tmp" + userdir "$name" "/var/lib/koha/$name/plugins" userdir "$name" "/var/lock/koha/$name" userdir "$name" "/var/lock/koha/$name/authorities" userdir "$name" "/var/lock/koha/$name/biblios" -- 1.7.2.5