[Koha-patches] [PATCH] Bug 9890 - Fix koha-create and koha-create-dirs
Tomas Cohen Arazi
tomascohen at gmail.com
Fri May 31 21:02:43 CEST 2013
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
---
debian/scripts/koha-create | 1 +
debian/scripts/koha-create-dirs | 1 +
2 files changed, 2 insertions(+)
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.9.5
More information about the Koha-patches
mailing list