diff --git a/bin/dbsv-update.php b/bin/dbsv-update.php index 080e6e51..a86aa222 100644 --- a/bin/dbsv-update.php +++ b/bin/dbsv-update.php @@ -54,6 +54,7 @@ function update_triggers() { global $opt; + echo " "; // space for the case of a DB password prompt system('php ' . $opt['rootpath'] . 'doc/sql/stored-proc/maintain.php'); } diff --git a/htdocs/doc/sql/stored-proc/maintain.php b/htdocs/doc/sql/stored-proc/maintain.php index eb6a1424..6c7437d3 100644 --- a/htdocs/doc/sql/stored-proc/maintain.php +++ b/htdocs/doc/sql/stored-proc/maintain.php @@ -18,7 +18,8 @@ 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'); $db_root_password = trim(fgets($fh, 1024)); fclose($fh);