From 3ee6888506518259d15c2f27c03fa2199a63c0ca Mon Sep 17 00:00:00 2001 From: David Hill Date: Wed, 15 Feb 2017 10:05:27 -0600 Subject: [PATCH] MCOL-509 - changed to check user to determine non-root --- oam/install_scripts/post-mysql-install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oam/install_scripts/post-mysql-install b/oam/install_scripts/post-mysql-install index dc9b7ca67..053a5117e 100755 --- a/oam/install_scripts/post-mysql-install +++ b/oam/install_scripts/post-mysql-install @@ -79,7 +79,7 @@ for arg in "$@"; do fi done -if [ $installdir != "/usr/local/mariadb/columnstore" ]; then +if [ $USER != "root" ]; then sudo ldconfig export COLUMNSTORE_INSTALL_DIR=$installdir export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$COLUMNSTORE_INSTALL_DIR/lib:$COLUMNSTORE_INSTALL_DIR/mysql/lib/mysql