From 6af00dbe8321e89873a85bdefb79fbf094e3bc4d Mon Sep 17 00:00:00 2001 From: David Hill Date: Mon, 28 Nov 2016 23:04:51 +0000 Subject: [PATCH] added in mysql password prompt setup --- oam/install_scripts/post-mysql-install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oam/install_scripts/post-mysql-install b/oam/install_scripts/post-mysql-install index 145edd69b..144a93fef 100755 --- a/oam/install_scripts/post-mysql-install +++ b/oam/install_scripts/post-mysql-install @@ -50,7 +50,7 @@ prefix=/usr/local installdir=$prefix/mariadb/columnstore rpmmode=install password= - +pwprompt= for arg in "$@"; do if [ $(expr -- "$arg" : '--prefix=') -eq 9 ]; then prefix="$(echo $arg | awk -F= '{print $2}')" @@ -59,6 +59,7 @@ for arg in "$@"; do rpmmode="$(echo $arg | awk -F= '{print $2}')" elif [ $(expr -- "$arg" : '--password=') -eq 11 ]; then password="$(echo $arg | awk -F= '{print $2}')" + pwprompt="-p$password" elif [ $(expr -- "$arg" : '--installdir=') -eq 13 ]; then installdir="$(echo $arg | awk -F= '{print $2}')" prefix=$(dirname $installdir)