show password prompt also when running maintain.php via dbsv-update
This commit is contained in:
@@ -54,6 +54,7 @@
|
|||||||
function update_triggers()
|
function update_triggers()
|
||||||
{
|
{
|
||||||
global $opt;
|
global $opt;
|
||||||
|
echo " "; // space for the case of a DB password prompt
|
||||||
system('php ' . $opt['rootpath'] . 'doc/sql/stored-proc/maintain.php');
|
system('php ' . $opt['rootpath'] . 'doc/sql/stored-proc/maintain.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,8 @@
|
|||||||
|
|
||||||
if ($db_root_password == '')
|
if ($db_root_password == '')
|
||||||
{
|
{
|
||||||
echo "enter DB $db_root_username password: ";
|
echo "enter DB $db_root_username password:\n";
|
||||||
|
flush();
|
||||||
$fh = fopen('php://stdin', 'r');
|
$fh = fopen('php://stdin', 'r');
|
||||||
$db_root_password = trim(fgets($fh, 1024));
|
$db_root_password = trim(fgets($fh, 1024));
|
||||||
fclose($fh);
|
fclose($fh);
|
||||||
|
|||||||
Reference in New Issue
Block a user