Skip to content

Commit

Permalink
Merge pull request #94 from HorizenOfficial/fix_entrypoint_v13
Browse files Browse the repository at this point in the history
fix entorypoint for 1.3
  • Loading branch information
paolocappelletti authored Feb 20, 2024
2 parents 6b7382f + 669b16c commit 2e81825
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dockerfiles/evmapp/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,11 @@ path_to_jemalloc="$(ldconfig -p | grep "$(arch)" | grep 'libjemalloc\.so\.2$' |
export LD_PRELOAD="${path_to_jemalloc}:${LD_PRELOAD}"

if [ "${1}" = "/usr/bin/true" ]; then
set -- java -cp '/sidechain/'"${SC_JAR_NAME}"'-'"${SC_VERSION}"'.jar:/sidechain/lib/*' "${LOG4J_CUSTOM_CONFIG}" "$SC_MAIN_CLASS" "$SC_CONF_PATH"
if [ -z "${LOG4J_CUSTOM_CONFIG:-}" ]; then
set -- java -cp '/sidechain/'"${SC_JAR_NAME}"'-'"${SC_VERSION}"'.jar:/sidechain/lib/*' "$SC_MAIN_CLASS" "$SC_CONF_PATH"
else
set -- java -cp '/sidechain/'"${SC_JAR_NAME}"'-'"${SC_VERSION}"'.jar:/sidechain/lib/*' "${LOG4J_CUSTOM_CONFIG}" "$SC_MAIN_CLASS" "$SC_CONF_PATH"
fi
fi

echo "Username: ${USERNAME}, UID: ${CURRENT_UID}, GID: ${CURRENT_GID}"
Expand Down

0 comments on commit 2e81825

Please sign in to comment.