@@ -, +, @@ --- debian/templates/koha-conf-site.xml.in | 3 +++ installer/install.pl | 11 ++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) --- a/debian/templates/koha-conf-site.xml.in +++ a/debian/templates/koha-conf-site.xml.in @@ -250,7 +250,10 @@ __END_SRU_PUBLICSERVER__ mysql __DB_NAME__ + __DB_HOST__ + __DB_HOST__ 3306 __DB_USER__ __DB_PASS__ --- a/installer/install.pl +++ a/installer/install.pl @@ -44,10 +44,11 @@ $info{'dbms'} = ( C4::Context->config("db_scheme") ? C4::Context->config("db_scheme") : "mysql" ); -$info{'hostname'} = C4::Context->config("hostname"); -$info{'port'} = C4::Context->config("port"); -$info{'user'} = C4::Context->config("user"); -$info{'password'} = C4::Context->config("pass"); +$info{'hostname'} = C4::Context->config("hostname"); +$info{'webserver'} = C4::Context->config("webserver"); +$info{'port'} = C4::Context->config("port"); +$info{'user'} = C4::Context->config("user"); +$info{'password'} = C4::Context->config("pass"); my $dbh = DBI->connect( "DBI:$info{dbms}:dbname=$info{dbname};host=$info{hostname}" . ( $info{port} ? ";port=$info{port}" : "" ), @@ -113,7 +114,7 @@ elsif ( $step && $step == 2 ) { #Check if user have all necessary grants on this database. my $rq = $dbh->prepare( - "SHOW GRANTS FOR \'$info{user}\'\@'$info{hostname}'"); + "SHOW GRANTS FOR \'$info{user}\'\@'$info{webserver}'"); $rq->execute; my $grantaccess; while ( my ($line) = $rq->fetchrow ) { --