Skip to content

Commit 52e900e

Browse files
committed
Fix User database permission for table ftp_traffic in multi servers setup
1 parent 52b7de6 commit 52e900e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

install/lib/installer_base.lib.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,14 @@ public function grant_master_database_rights($verbose = false) {
667667
if(!$this->dbmaster->query($query, $value['db'] . '.dns_soa', $value['user'], $host)) {
668668
$this->warning('Unable to set rights of user in master database: '.$value['db']."\n Query: ".$query."\n Error: ".$this->dbmaster->errorMessage);
669669
}
670+
671+
$query = "GRANT SELECT, INSERT, UPDATE ON ?? TO ?@?";
672+
if ($verbose){
673+
echo $query ."\n";
674+
}
675+
if(!$this->dbmaster->query($query, $value['db'] . '.ftp_traffic', $value['user'], $host)) {
676+
$this->warning('Unable to set rights of user in master database: '.$value['db']."\n Query: ".$query."\n Error: ".$this->dbmaster->errorMessage);
677+
}
670678

671679
}
672680

0 commit comments

Comments
 (0)