Bugzilla – Attachment 60350 Details for
Bug 16749
Additional fixes for debian scripts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16749: Add is_instance check to koha-upgrade-schema
Bug-16749-Add-isinstance-check-to-koha-upgrade-sch.patch (text/plain), 1.14 KB, created by
Jonathan Druart
on 2017-02-16 14:08:12 UTC
(
hide
)
Description:
Bug 16749: Add is_instance check to koha-upgrade-schema
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-02-16 14:08:12 UTC
Size:
1.14 KB
patch
obsolete
>From 6d3197501fd0271f73bddb49ccee58a8efa9ef69 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 16 Feb 2017 14:07:05 +0000 >Subject: [PATCH] Bug 16749: Add is_instance check to koha-upgrade-schema > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > debian/scripts/koha-upgrade-schema | 12 ++++++++---- > 1 file changed, 8 insertions(+), 4 deletions(-) > >diff --git a/debian/scripts/koha-upgrade-schema b/debian/scripts/koha-upgrade-schema >index c1cc6cb..da50d41 100755 >--- a/debian/scripts/koha-upgrade-schema >+++ b/debian/scripts/koha-upgrade-schema >@@ -39,8 +39,12 @@ fi > > for name in "$@" > do >- echo "Upgrading database schema for $name" >- KOHA_CONF="/etc/koha/sites/$name/koha-conf.xml" \ >- PERL5LIB=$PERL5LIB \ >- "$CGI_PATH/installer/data/mysql/updatedatabase.pl" >+ if is_instance $name; then >+ echo "Upgrading database schema for $name" >+ KOHA_CONF="/etc/koha/sites/$name/koha-conf.xml" \ >+ PERL5LIB=$PERL5LIB \ >+ "$CGI_PATH/installer/data/mysql/updatedatabase.pl" >+ else >+ die "Error: Invalid instance name $name" >+ fi > done >-- >2.1.4
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 16749
:
52561
|
55490
|
60064
|
60103
|
60106
|
60109
|
60110
|
60111
|
60112
|
60113
|
60114
|
60125
|
60126
|
60129
|
60130
|
60131
|
60132
|
60139
|
60140
|
60193
|
60194
|
60195
|
60196
|
60197
|
60335
|
60340
|
60343
|
60344
|
60345
|
60346
|
60347
|
60348
|
60349
| 60350