[Koha-patches] [PATCH] [BZ7216] koha-restore does not correctly set home
Jared Camins-Esakov
jcamins at cpbibliography.com
Sat Nov 12 01:55:27 CET 2011
Prior to this patch, the koha-restore Debian script did not set the home
directory properly for the system users it created, causing problems down the
line for koha-rebuild-zebra. This patch fixes that by specifying the home
directory.
---
debian/scripts/koha-restore | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/debian/scripts/koha-restore b/debian/scripts/koha-restore
index 4999088..caf4c7d 100755
--- a/debian/scripts/koha-restore
+++ b/debian/scripts/koha-restore
@@ -54,7 +54,7 @@ name=$(tar tf "$configdump" |
sed -n '/^etc\/koha\/sites\/\([^/]*\)\/$/s//\1/p')
username="$name-koha"
adduser --no-create-home --disabled-login --gecos "Koha instance $username" \
- --quiet "$username"
+ --home "/var/lib/koha/$name" --quiet "$username"
# Create dirs. Some of them will be in the tarball, but not all, e.g.,
--
1.7.2.5
More information about the Koha-patches
mailing list