From 2594a3ae215e5b210689f5d81ec71df4379139ef Mon Sep 17 00:00:00 2001 From: tierno Date: Thu, 13 Oct 2016 13:11:31 +0000 Subject: [PATCH] change database credentials checking from mysqladmin ping to mysqladmin status Signed-off-by: tierno --- scripts/install-openvim.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install-openvim.sh b/scripts/install-openvim.sh index 053b8a9..aff6c8c 100755 --- a/scripts/install-openvim.sh +++ b/scripts/install-openvim.sh @@ -205,7 +205,7 @@ fi #[[ -z "$NO_PACKAGES" ]] if [[ -n $QUIET_MODE ]] then echo -e "\nCheking database connection and ask for credentials" - while ! mysqladmin -s -u$DBUSER $DBPASSWD_PARAM ping + while ! mysqladmin -s -u$DBUSER $DBPASSWD_PARAM status >/dev/null do [ -n "$logintry" ] && echo -e "\nInvalid database credentials!!!. Try again (Ctrl+c to abort)" [ -z "$logintry" ] && echo -e "\nProvide database credentials" -- 2.25.1