From 4fc711da06f93bbf3fc44b76574f2984cd8e4fc6 Mon Sep 17 00:00:00 2001 From: benthompson15 Date: Thu, 3 Oct 2019 14:04:43 -0500 Subject: [PATCH] MCOL-3498: when datafileplugin is set only update bashrc if DataFileEnvFile is set. --- oam/install_scripts/module_installer.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/oam/install_scripts/module_installer.sh b/oam/install_scripts/module_installer.sh index d72c94877..ce36ba5a7 100755 --- a/oam/install_scripts/module_installer.sh +++ b/oam/install_scripts/module_installer.sh @@ -127,12 +127,14 @@ if [ -n "$plugin" ]; then setenv=`$COLUMNSTORE_INSTALL_DIR/bin/getConfig SystemConfig DataFileEnvFile` - eval userhome=~$user - bashFile=$userhome/.bashrc - touch ${bashFile} + if [ -n "$setenv" ]; then + eval userhome=~$user + bashFile=$userhome/.bashrc + touch ${bashFile} - echo " " >> ${bashFile} - echo ". $COLUMNSTORE_INSTALL_DIR/bin/$setenv" >> ${bashFile} + echo " " >> ${bashFile} + echo ". $COLUMNSTORE_INSTALL_DIR/bin/$setenv" >> ${bashFile} + fi fi # if mysqlrep is on and module has a my.cnf file, upgrade it