Skip to content

Commit 3e7abc3

Browse files
author
Till Brehm
committed
Merge branch 'master' into 'master'
Fix User database permission for table ftp_traffic in multi servers setup Resolution for this issue : https://git.ispconfig.org/ispconfig/ispconfig3/issues/4266 See merge request !530
2 parents ecb0b82 + 2741ba3 commit 3e7abc3

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)