File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,15 @@ set -e # exit on error
30
30
#
31
31
# export GS_DEBUG_VMGC_PRINT_MKSW_MEMORY_USED=75
32
32
33
- if [ -s $GEMSTONE /seaside/etc/gemstone.secret ]; then
34
- . $GEMSTONE /seaside/etc/gemstone.secret
33
+ secret=${GEMSTONE_ETC_SECRET}
34
+ if [ " ${GEMSTONE_ETC_SECRET} x" = " x" ] ; then
35
+ secret=$GEMSTONE /seaside/etc/gemstone.secret
36
+ fi
37
+
38
+ if [ -s $secret ]; then
39
+ . $secret
35
40
else
36
- echo ' Missing password file $GEMSTONE/seaside/etc/gemstone. secret'
41
+ echo ' Missing password file $secret'
37
42
exit 1
38
43
fi
39
44
@@ -49,11 +54,16 @@ if [ "${logDir}x" = "x" ] ; then
49
54
fi
50
55
logFile=" ${logDir} /${GemServer} _server-${Port} .log"
51
56
57
+ username=$GEMSTONE_USER_NAME
58
+ if [ " ${GEMSTONE_USER_NAME} x" = " x" ] ; then
59
+ username=DataCurator
60
+ fi
61
+
52
62
echo " Starting $GemServer on $Port exeConf: -$ExeConf - logFile: -$logFile -"
53
63
54
64
cat << EOF | nohup $GEMSTONE /bin/topaz -l ${ExeArg} >> $logFile 2>&1 &
55
65
56
- set user DataCurator pass $GEMSTONE_CURATOR_PASS gems $GEMSTONE_NAME
66
+ set user $username pass $GEMSTONE_CURATOR_PASS gems $GEMSTONE_NAME
57
67
58
68
display oops
59
69
iferror stack
You can’t perform that action at this time.
0 commit comments