From: tierno Date: Thu, 13 Oct 2016 13:11:31 +0000 (+0000) Subject: change database credentials checking from mysqladmin ping to mysqladmin status X-Git-Tag: v1.0.1~3 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=2594a3ae215e5b210689f5d81ec71df4379139ef;p=osm%2Fopenvim.git change database credentials checking from mysqladmin ping to mysqladmin status Signed-off-by: tierno --- 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"