@@ -, +, @@ --- debian/templates/koha-conf-site.xml.in | 3 +++ installer/install.pl | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) --- 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 @@ -63,6 +63,7 @@ $info{'dbms'} = ( : "mysql" ); $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"); @@ -147,7 +148,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 ) { --