replace /home/koha/koha with var

This commit is contained in:
2022-06-23 11:55:09 +02:00
parent 35c2daaa08
commit 6a106a5573
3 changed files with 67 additions and 67 deletions

View File

@@ -17,8 +17,8 @@
use Modern::Perl;
use lib("/home/koha/koha/lib");
use lib("/home/koha/koha/lib/installer");
use lib("{{ koha_install_dir }}/lib");
use lib("{{ koha_install_dir }}/lib/installer");
use Plack::Builder;
use Plack::App::CGIBin;
@@ -54,16 +54,16 @@ use CGI qw(-utf8 ); # we will loose -utf8 under plack, otherwise
}
my $intranet = Plack::App::CGIBin->new(
root => '/home/koha/koha/intranet/cgi-bin'
root => '{{ koha_install_dir }}/intranet/cgi-bin'
)->to_app;
my $opac = Plack::App::CGIBin->new(
root => '/home/koha/koha/opac/cgi-bin/opac'
root => '{{ koha_install_dir }}/opac/cgi-bin/opac'
)->to_app;
my $apiv1 = builder {
my $server = Mojo::Server::PSGI->new;
$server->load_app('/home/koha/koha/api/v1/app.pl');
$server->load_app('{{ koha_install_dir }}/api/v1/app.pl');
$server->to_psgi_app;
};