Skip to content

Commit

Permalink
Update script
Browse files Browse the repository at this point in the history
  • Loading branch information
gcotelli committed Nov 1, 2023
1 parent e4bfa7c commit 7e536ad
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions docker/gs64/launchpad-gem
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@
readonly SYSTEM_USER_PASSWORD="${GS64_SYSTEM_USER_PASSWORD:-swordfish}"
readonly STONE_NAME="${GS64_STONE_SERVICE_NAME:-gs64stone}"

set -e
readonly LAUNCHPAD_TOPAZ_SCRIPT="${GEMSTONE_GLOBAL_DIR}/data/launchpad-start.tpz"
set +o histexpand
echo "set gemstone !@${GS64_STONE_HOSTNAME}!${STONE_NAME} user SystemUser pass ${SYSTEM_USER_PASSWORD}" >> .topazini
echo "iferror exit 1" >> .topazini
echo "login" >> .topazini
echo "doit" >> .topazini
echo " CommandLineHandler activateWith: CommandLineArguments new" >> .topazini
echo "%" >> .topazini
echo "exit 0" >> .topazini
echo "set gemstone !@${GS64_STONE_HOSTNAME}!${STONE_NAME} user SystemUser pass ${SYSTEM_USER_PASSWORD}" >> "${LAUNCHPAD_TOPAZ_SCRIPT}"
echo "iferror exit 1" >> "${LAUNCHPAD_TOPAZ_SCRIPT}"
echo "login" >> "${LAUNCHPAD_TOPAZ_SCRIPT}"
echo "doit" >> "${LAUNCHPAD_TOPAZ_SCRIPT}"
echo " CommandLineHandler activateWith: CommandLineArguments new" >> "${LAUNCHPAD_TOPAZ_SCRIPT}"
echo "%" >> "${LAUNCHPAD_TOPAZ_SCRIPT}"
echo "exit 0" >> "${LAUNCHPAD_TOPAZ_SCRIPT}"
set -o histexpand

pid=0
Expand Down Expand Up @@ -44,6 +46,6 @@ startnetldi \
# list GemStone services
gslist -cvl

topaz -l -- launchpad "$@" &
topaz -l -S "${LAUNCHPAD_TOPAZ_SCRIPT}" -- launchpad "$@" &
pid="$!"
wait "$pid"

0 comments on commit 7e536ad

Please sign in to comment.