Bugzilla – Attachment 26221 Details for
Bug 10942
Provide a way for package upgrades to update template translations
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bug 10942: (follow-up) create a /etc/koha/koha-common.conf
bug-10942-follow-up-create-a-etckohakoha-commoncon.patch (text/plain), 3.15 KB, created by
Tomás Cohen Arazi (tcohen)
on 2014-03-12 23:15:31 UTC
(
hide
)
Description:
bug 10942: (follow-up) create a /etc/koha/koha-common.conf
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2014-03-12 23:15:31 UTC
Size:
3.15 KB
patch
obsolete
>From 5065a88b91e2ed0c1f5046c5f8c60b8c8d15d3d0 Mon Sep 17 00:00:00 2001 >From: Galen Charlton <gmc@esilibrary.com> >Date: Wed, 12 Mar 2014 02:02:47 +0000 >Subject: [PATCH] bug 10942: (follow-up) create a /etc/koha/koha-common.conf > >This patch creates a new master configuration file for the >koha-common package, and moves the AUTOMATIC_TRANSLATIONS_UPDATE >variable rather than leaving in in /etc/default/koha, which is meant >to be used for init script settings. > >The configuration format is simple - a shell script that >sets variables and which can sourced by another script or >trivially parsed. > >To test: > >- Apply the patch series for bug 10942 and build a package. >- Install the package. >- Verify that a new config file, /etc/koha/koha-common.conf. >- Follow the rest of the test plan for the main page (e.g., > set AUTOMATIC_TRANSLATIONS_UPDATE and force a package upgrade). > >Signed-off-by: Galen Charlton <gmc@esilibrary.com> >Signed-off-by: Robin Sheat <robin@catalyst.net.nz> >Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com> >--- > debian/koha-common.default | 11 ----------- > debian/koha-common.postinst | 5 ++--- > debian/templates/koha-common.conf | 17 +++++++++++++++++ > 3 files changed, 19 insertions(+), 14 deletions(-) > create mode 100644 debian/templates/koha-common.conf > >diff --git a/debian/koha-common.default b/debian/koha-common.default >index cbc6eba..2f4dc40 100644 >--- a/debian/koha-common.default >+++ b/debian/koha-common.default >@@ -2,15 +2,4 @@ > > PERL5LIB="/usr/share/koha/lib" > >-## Automatic template translation update >-# >-# This variable controls whether template translations should >-# be updated automatically on koha-common package upgrades. >-# Options: 'yes' >-# 'no' (default) >-# Note: if you choose 'no' then you will have to issue >-# $ koha-translate --update <lang_code> >-# >-#AUTOMATIC_TRANSLATIONS_UPDATE="no" >- > ## End of general koha-common default options >diff --git a/debian/koha-common.postinst b/debian/koha-common.postinst >index b76cf57..f56142d 100644 >--- a/debian/koha-common.postinst >+++ b/debian/koha-common.postinst >@@ -2,15 +2,14 @@ > > set -e > >-NAME="koha-common" > # Default to "no" > AUTOMATIC_TRANSLATIONS_UPDATE="no" > > . /usr/share/debconf/confmodule > > # Read configuration variable file if it is present >-if [ -r /etc/default/$NAME ]; then >- . /etc/default/$NAME >+if [ -r /etc/koha/koha-common.conf ]; then >+ . /etc/koha/koha-common.conf > fi > > conf=/etc/mysql/koha-common.cnf >diff --git a/debian/templates/koha-common.conf b/debian/templates/koha-common.conf >new file mode 100644 >index 0000000..3c8a9af >--- /dev/null >+++ b/debian/templates/koha-common.conf >@@ -0,0 +1,17 @@ >+### Configuration settings for all Koha sites >+# >+# This file contains configuration settings that apply >+# to all Koha sites on this server or which apply to >+# the koha-common package itself. >+# >+ >+## Automatic template translation update >+# >+# This variable controls whether template translations should >+# be updated automatically on koha-common package upgrades. >+# Options: 'yes' >+# 'no' (default) >+# Note: if you choose 'no' then you will have to issue >+# $ koha-translate --update <lang_code> >+# >+#AUTOMATIC_TRANSLATIONS_UPDATE="no" >-- >1.8.3.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 10942
:
21459
|
21461
|
24096
|
24972
|
26122
|
26132
|
26133
|
26134
|
26135
|
26136
|
26137
|
26138
|
26220
|
26221
|
26222
|
26223
|
26301
|
27454
|
27455
|
27456
|
27457
|
27458