Bugzilla – Attachment 56663 Details for
Bug 17467
Introduce a single koha-zebra script to handle Zebra daemons for instances
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17467: (followup) Make koha-zebra handle legacy script names
Bug-17467-followup-Make-koha-zebra-handle-legacy-s.patch (text/plain), 2.09 KB, created by
Tomás Cohen Arazi (tcohen)
on 2016-10-19 13:27:17 UTC
(
hide
)
Description:
Bug 17467: (followup) Make koha-zebra handle legacy script names
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2016-10-19 13:27:17 UTC
Size:
2.09 KB
patch
obsolete
>From ac3a0f51131a6e399e86a97104f6ed554a29cf4b Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Tue, 18 Oct 2016 16:23:20 -0300 >Subject: [PATCH] Bug 17467: (followup) Make koha-zebra handle legacy script > names > >This patch adds the new koha-zebra script the ability to handle being >called by other script names, for backwards compatibility with the legacy >koha-*-zebra scripts. > >It is intended to be used in conjunction with a patch that replaces the old >koha-*-zebra scripts for symbolic links, pointing to the new koha-zebra script. > >To test: >- Apply this patch >- Create symbolic links to the new script: > vagrant@kohadevbox:~$ ln -s kohaclone/debian/scripts/koha-zebra koha-start-zebra > vagrant@kohadevbox:~$ ln -s kohaclone/debian/scripts/koha-zebra koha-stop-zebra > vagrant@kohadevbox:~$ ln -s kohaclone/debian/scripts/koha-zebra koha-restart-zebra >- Run: > $ sudo ./koha-start-zebra kohadev >=> SUCCESS: Same behaviour than the koha-start-zebra script >- Run: > sudo ./koha-stop-zebra kohadev >=> SUCCESS: Same behaviour than the koha-stop-zebra script >- Run: > sudo ./koha-restart-zebra kohadev >=> SUCCESS: Same behaviour than the koha-restart-zebra script >--- > debian/scripts/koha-zebra | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) > >diff --git a/debian/scripts/koha-zebra b/debian/scripts/koha-zebra >index a2f47e7..aa065e6 100755 >--- a/debian/scripts/koha-zebra >+++ b/debian/scripts/koha-zebra >@@ -186,6 +186,26 @@ set_action() > op="" > verbose="no" > >+# Backwards compatible with old koha-*-zebra scripts >+# TODO: Remove once there's consensus to remove the legacy scripts >+used_script_name=$(basename $0) >+ >+if [ "$used_script_name" != "koha-zebra" ]; then >+ warn "Deprecated script used (${used_script_name})" >+ >+ case "$used_script_name" in >+ koha-start-zebra) >+ set_action "start" ;; >+ koha-stop-zebra) >+ set_action "stop" ;; >+ koha-restart-zebra) >+ set_action "restart" ;; >+ *) >+ break ;; >+ esac >+fi >+# / Backwards compatible handling code >+ > # Read command line parameters > while [ $# -gt 0 ]; do > >-- >2.7.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 17467
:
56662
|
56663
|
56664
|
56665
|
56669
|
56693
|
58550
|
66420
|
66421
|
66422
|
66423
|
66424
|
66425
|
66426
|
68623
|
68624
|
68625
|
68626
|
68627
|
68628
|
68629