Bug 9890: fix plugin handling by koha-create and koha-create-dirs
authorTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 27 May 2013 15:17:15 +0000 (12:17 -0300)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 24 Jun 2013 13:55:36 +0000 (06:55 -0700)
1) koha-create: fill in __PLUGINS_DIR__
2) koha-create-dirs: create the directory, set permissions (writeable by the koha user)

Sponsored-by: Universidad Nacional de Córdoba
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Robin Sheat <robin@catalyst.net.nz>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
debian/scripts/koha-create
debian/scripts/koha-create-dirs

index 8211e1c..5bedbf8 100755 (executable)
@@ -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"
 }
 
index 06b7bff..52e2134 100755 (executable)
@@ -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"