From aac6fd6485f22afe71578765b1144205079b88bd Mon Sep 17 00:00:00 2001 From: David Hill Date: Thu, 1 Dec 2016 22:29:50 +0000 Subject: [PATCH] update --- oam/install_scripts/post-mysql-install | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/oam/install_scripts/post-mysql-install b/oam/install_scripts/post-mysql-install index eb172d454..6f4503ce2 100755 --- a/oam/install_scripts/post-mysql-install +++ b/oam/install_scripts/post-mysql-install @@ -12,6 +12,7 @@ checkForError() { if test -f $HOME/.my.cnf ; then password=`cat $HOME/.my.cnf | grep password | awk '{gsub(/^[ \t]+|[ \t]+$/,"");print $3}'` pwprompt="-p$password" + return 1; else echo "MySQL Password file missing or incorrect, check .my.cnf file" rm -f /tmp/error.check @@ -19,12 +20,6 @@ checkForError() { sleep 2 exit 1; fi - else - echo "MySQL access error" - rm -f /tmp/error.check - $installdir/mysql/mysql-Columnstore stop - sleep 2 - exit 1; fi rm -f /tmp/error.check @@ -120,7 +115,7 @@ if [ -x $installdir/mysql/mysql-Columnstore ]; then $installdir/mysql/install_calpont_mysql.sh --password=$password --installdir=$installdir checkForError if [ $? -ne 0 ]; then - echo "ERROR: missing or invalid password, or InfiniDB plugin install missing" + echo "ERROR: Invalid password in .my.cnf, or Columnstore plugin install missing" $installdir/mysql/mysql-Columnstore stop sleep 2 exit 1;