@@ -, +, @@
- Run koha-create to create an instance or just fire kohadevbox:ansible
instead of /etc/koha/sites/kohadev/ on the log4perl entry.
instead of /var/log/koha/kohadev/
- Apply this patch and pick the koha-conf-site.xml.in and koha-create files
- Create a new instance
- Sign off
---
debian/scripts/koha-create | 4 +++-
debian/templates/koha-conf-site.xml.in | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
--- a/debian/scripts/koha-create
+++ a/debian/scripts/koha-create
@@ -84,7 +84,8 @@ generate_config_file() {
touch "$2"
chown "root:$username" "$2"
chmod 0640 "$2"
- sed -e "s/__KOHASITE__/$name/g" \
+ sed -e "s/__KOHA_CONF_DIR__/\/etc\/koha\/sites\/$name/g" \
+ -e "s/__KOHASITE__/$name/g" \
-e "s/__OPACPORT__/$OPACPORT/g" \
-e "s/__INTRAPORT__/$INTRAPORT/g" \
-e "s/__OPACSERVER__/$opacdomain/g" \
@@ -110,6 +111,7 @@ generate_config_file() {
-e "s/__UNIXUSER__/$username/g" \
-e "s/__UNIXGROUP__/$username/g" \
-e "s#__UPLOAD_PATH__#$UPLOAD_PATH#g" \
+ -e "s/__LOG_DIR__/\/var\/log\/koha\/$name/g" \
-e "s/__PLUGINS_DIR__/\/var\/lib\/koha\/$name\/plugins/g" \
-e "s/__MEMCACHED_NAMESPACE__/$MEMCACHED_NAMESPACE/g" \
-e "s/__MEMCACHED_SERVERS__/$MEMCACHED_SERVERS/g" \
--- a/debian/templates/koha-conf-site.xml.in
+++ a/debian/templates/koha-conf-site.xml.in
@@ -266,7 +266,7 @@ __END_SRU_PUBLICSERVER__
/usr/share/koha/opac/htdocs/opac-tmpl
/usr/share/koha/intranet/htdocs/intranet-tmpl
/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/includes/
- /var/log/koha/__KOHASITE__
+ __LOG_DIR__
/usr/share/doc/koha-common
/var/spool/koha/__KOHASITE__