From 11a422d399ecec982bdddebaeea76f86f120ef91 Mon Sep 17 00:00:00 2001 From: Dale Henrichs Date: Mon, 2 Feb 2015 11:16:05 -0800 Subject: [PATCH] Issue #27: add GEMSTONE_USER_NAME as option for defined the gemstone user --- bin/startGemServerGem | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/startGemServerGem b/bin/startGemServerGem index 9f41ef4..9fc8540 100755 --- a/bin/startGemServerGem +++ b/bin/startGemServerGem @@ -54,11 +54,16 @@ if [ "${logDir}x" = "x" ] ; then fi logFile="${logDir}/${GemServer}_server-${Port}.log" +username=$GEMSTONE_USER_NAME +if [ "${GEMSTONE_USER_NAME}x" = "x" ] ; then + username=DataCurator +fi + echo "Starting $GemServer on $Port exeConf: -$ExeConf- logFile: -$logFile-" cat << EOF | nohup $GEMSTONE/bin/topaz -l ${ExeArg} >> $logFile 2>&1 & -set user DataCurator pass $GEMSTONE_CURATOR_PASS gems $GEMSTONE_NAME +set user $username pass $GEMSTONE_CURATOR_PASS gems $GEMSTONE_NAME display oops iferror stack