Bugzilla – Attachment 70116 Details for
Bug 19760
Die instead of warn if koha-conf is not accessible
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19760: Die if koha-conf is not accessible
Bug-19760-Die-if-koha-conf-is-not-accessible.patch (text/plain), 1.22 KB, created by
Marcel de Rooy
on 2017-12-22 11:15:26 UTC
(
hide
)
Description:
Bug 19760: Die if koha-conf is not accessible
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2017-12-22 11:15:26 UTC
Size:
1.22 KB
patch
obsolete
>From 9e6bc326bad574437897681364799169545de2fc Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 6 Dec 2017 13:58:04 -0300 >Subject: [PATCH] Bug 19760: Die if koha-conf is not accessible >Content-Type: text/plain; charset=utf-8 > >We got a lot of support questions because scripts are executed without >the correct environment/user. >We could die and provide more useful information > >Tested on my kohadevbox VM by: > >1) sudo chmod a-rx /etc/koha/sites/kohadev/koha-conf.xml >2) run help.pl from the command line to produce the desired die message >3) sudo chmod a+rx /etc/koha/sites/kohadev/koha-conf.xml >4) rerun help.pl successfully > >Signed-off-by: Jon Knight <J.P.Knight@lboro.ac.uk> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > Koha/Config.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/Config.pm b/Koha/Config.pm >index f89ffb9..3b1e9eb 100644 >--- a/Koha/Config.pm >+++ b/Koha/Config.pm >@@ -48,7 +48,7 @@ sub read_from_file { > }; > > if ($@) { >- warn "Error reading file $file"; >+ die "\nError reading file $file.\nMake sure you are using the correct user (use koha-shell should resolve this problem)\n\n"; > } > > return $xml; >-- >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 19760
:
69568
|
69571
|
70014
| 70116 |
70117
|
70135