change database credentials checking from mysqladmin ping to mysqladmin status 29/529/1
authortierno <alfonso.tiernosepulveda@telefonica.com>
Thu, 13 Oct 2016 13:11:31 +0000 (13:11 +0000)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Thu, 13 Oct 2016 13:11:31 +0000 (13:11 +0000)
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
scripts/install-openvim.sh

index 053b8a9..aff6c8c 100755 (executable)
@@ -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"