Browse Source

Bug 25109: (QA follow-up) Add a test for lockdir writable in about.pl

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
20.05.x
Tomás Cohen Arazi 4 years ago
committed by Martin Renvoize
parent
commit
83cde3858e
Signed by: martin.renvoize GPG Key ID: 422B469130441A0F
  1. 8
      about.pl
  2. 7
      koha-tmpl/intranet-tmpl/prog/en/modules/about.tt

8
about.pl

@ -214,6 +214,14 @@ if ( ! defined C4::Context->config('lockdir') ) {
error => 'lockdir_entry_missing'
}
}
else {
unless ( -w C4::Context->config('lockdir') ) {
push @xml_config_warnings, {
error => 'lockdir_not_writable',
lockdir => C4::Context->config('lockdir')
}
}
}
if ( ! defined C4::Context->config('upload_path') ) {
if ( Koha::Config::SysPrefs->find('OPACBaseURL')->value ) {

7
koha-tmpl/intranet-tmpl/prog/en/modules/about.tt

@ -366,6 +366,13 @@
add it, pointing to your Koha instance's lock dir.
</td>
</tr>
[% ELSIF config_entry.error == 'lockdir_not_writable' %]
<tr>
<th scope="row"><b>Warning</b></th>
<td>The configured &lt;lockdir&gt; entry in your koha-conf.xml file points to a
non-writable directory ([% config_entry.lockdir | html %]).
</td>
</tr>
[% ELSIF config_entry.error == 'uploadpath_entry_missing' %]
<tr>
<th scope="row"><b>Warning</b></th>

Loading…
Cancel
Save