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>
This commit is contained in:
parent
17afb2b9ba
commit
83cde3858e
8
about.pl
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 ) {
|
||||
|
|
|
|||
|
|
@ -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 <lockdir> 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…
Reference in New Issue