Skip to content

Commit

Permalink
fixed entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
phearnot committed Oct 2, 2024
1 parent 211eae9 commit 89b4b1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ WORKDIR $WVDATA
HEALTHCHECK CMD curl -f http://localhost:6869/node/status || exit 1

STOPSIGNAL SIGINT
ENTRYPOINT "${WAVES_INSTALL_PATH}/bin/entrypoint.sh"
ENTRYPOINT ["/usr/share/waves/bin/entrypoint.sh"]
6 changes: 3 additions & 3 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ JAVA_OPTS="-XX:+ExitOnOutOfMemoryError

echo "JAVA_OPTS=${JAVA_OPTS}" | tee -a ${WVLOG}/waves.log

if [ -n ${WAVES_WALLET_SEED} ] ; then
if [ -n "$WAVES_WALLET_SEED" ] ; then
JAVA_OPTS="-Dwaves.wallet.seed=${WAVES_WALLET_SEED} ${JAVA_OPTS}"
fi

if [ -n ${WAVES_WALLET_PASSWORD} ] ; then
if [ -n "$WAVES_WALLET_PASSWORD" ] ; then
JAVA_OPTS="-Dwaves.wallet.password=${WAVES_WALLET_PASSWORD} ${JAVA_OPTS}"
fi

exec java $JAVA_OPTS -cp "${WAVES_INSTALL_PATH}/lib/plugins/*:$WAVES_INSTALL_PATH/lib/*" com.wavesplatform.Application $ARGS
exec java $JAVA_OPTS -cp "${WAVES_INSTALL_PATH}/lib/plugins/*:$WAVES_INSTALL_PATH/lib/*" com.wavesplatform.Application $@

0 comments on commit 89b4b1a

Please sign in to comment.