Skip to content

Commit

Permalink
Issue #27: use GEMSTONE_ETC_DIR if present ... default is GEMSTONE/se…
Browse files Browse the repository at this point in the history
…aside/etc/gemstone.secret as before
  • Loading branch information
dalehenrich committed Feb 2, 2015
1 parent eec8f96 commit 5bf0349
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions bin/startGemServerGem
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,15 @@ set -e # exit on error
#
# export GS_DEBUG_VMGC_PRINT_MKSW_MEMORY_USED=75

if [ -s $GEMSTONE/seaside/etc/gemstone.secret ]; then
. $GEMSTONE/seaside/etc/gemstone.secret
secret=$GEMSTONE/seaside/etc/gemstone.secret
if [ "${GEMSTONE_ETC_DIR}x" = "x" ] ; then
secret=$GEMSTONE_ETC_DIR
fi

if [ -s $secret ]; then
. $secret
else
echo 'Missing password file $GEMSTONE/seaside/etc/gemstone.secret'
echo 'Missing password file $secret'
exit 1
fi

Expand Down

0 comments on commit 5bf0349

Please sign in to comment.