1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-05 16:15:50 +03:00

MCOL-3498: when datafileplugin is set only update bashrc if DataFileEnvFile is set.

This commit is contained in:
benthompson15
2019-10-03 14:04:43 -05:00
parent 1f475340dc
commit 4fc711da06

View File

@@ -127,12 +127,14 @@ if [ -n "$plugin" ]; then
setenv=`$COLUMNSTORE_INSTALL_DIR/bin/getConfig SystemConfig DataFileEnvFile` setenv=`$COLUMNSTORE_INSTALL_DIR/bin/getConfig SystemConfig DataFileEnvFile`
eval userhome=~$user if [ -n "$setenv" ]; then
bashFile=$userhome/.bashrc eval userhome=~$user
touch ${bashFile} bashFile=$userhome/.bashrc
touch ${bashFile}
echo " " >> ${bashFile} echo " " >> ${bashFile}
echo ". $COLUMNSTORE_INSTALL_DIR/bin/$setenv" >> ${bashFile} echo ". $COLUMNSTORE_INSTALL_DIR/bin/$setenv" >> ${bashFile}
fi
fi fi
# if mysqlrep is on and module has a my.cnf file, upgrade it # if mysqlrep is on and module has a my.cnf file, upgrade it