From 33bee361aa88512f32db3797eeeb8a68bfdacdd0 Mon Sep 17 00:00:00 2001 From: following Date: Sun, 23 Jun 2013 23:30:40 +0200 Subject: [PATCH] show password prompt also when running maintain.php via dbsv-update --- bin/dbsv-update.php | 1 + htdocs/doc/sql/stored-proc/maintain.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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);