Skip to content

Commit c796b61

Browse files
author
vogelor
committed
redo changes of the installer because of some sophisticated systems
1 parent 4142f13 commit c796b61

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

install/update.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -232,13 +232,12 @@
232232
$inst->configure_database();
233233

234234
if($conf['mysql']['master_slave_setup'] == 'y') {
235-
/*
236-
* Because of security updates and because of new functions in den new Version it is
237-
* better to ALWAYS reconfigure the rights and never ask!
238-
* (for example if we add some new tables to the monitor and the old rights don't have the
239-
* permission to read this tables the monitor always returns a error)
240-
*/
241-
$inst->grant_master_database_rights();
235+
//** Update master database rights
236+
$reconfigure_master_database_rights_answer = $inst->simple_query('Reconfigure Permissions in master database?', array('yes','no'),'no');
237+
238+
if($reconfigure_master_database_rights_answer == 'yes') {
239+
$inst->grant_master_database_rights();
240+
}
242241
}
243242

244243
//** empty all databases

0 commit comments

Comments
 (0)