installer: fixed chown invocation; added skel for KOHA_LOG_DIR
This commit is contained in:
parent
be79314aea
commit
5044c06592
2 changed files with 3 additions and 2 deletions
|
@ -259,6 +259,7 @@ my $target_map = {
|
|||
'./rss' => 'NONE', # FIXME deal with a little later
|
||||
'./serials' => 'INTRANET_CGI_DIR',
|
||||
'./skel' => 'NONE',
|
||||
'./skel/var/log/koha' => { target => 'KOHA_LOG_DIR', trimdir => -1 },
|
||||
'./skel/var/run/koha/zebradb' => { target => 'ZEBRA_RUN_DIR', trimdir => -1 },
|
||||
'./skel/var/lock/koha/zebradb/authorities' => { target => 'ZEBRA_LOCK_DIR', trimdir => 6 },
|
||||
'./skel/var/lib/koha/zebradb/authorities/key' => { target => 'ZEBRA_DATA_DIR', trimdir => 6 },
|
||||
|
@ -973,9 +974,8 @@ install :: all install_koha set_koha_ownership
|
|||
$install .= "set_koha_ownership ::\n";
|
||||
if ($config{'INSTALL_MODE'} eq 'standard' and $config{'KOHA_USER'} ne "root") {
|
||||
foreach my $key (sort keys %target_directories) {
|
||||
$install .= "\t\$(NOECHO); chown -R $config{'KOHA_USER'}:$config{'KOHA_GROUP'} \$(KOHA_DEST_$key) \\\n";
|
||||
$install .= "\tchown -R $config{'KOHA_USER'}:$config{'KOHA_GROUP'} \$(KOHA_DEST_$key)\n";
|
||||
}
|
||||
$install .= "\t\$(NOECHO) \$(NOOP)\n\n";
|
||||
} else {
|
||||
$install .= "\t\t\$(NOECHO) \$(NOOP)\n\n";
|
||||
}
|
||||
|
|
1
skel/var/log/koha/README
Normal file
1
skel/var/log/koha/README
Normal file
|
@ -0,0 +1 @@
|
|||
Koha Apache logs
|
Loading…
Reference in a new issue