From 324ed8308ef0dfe1551c58caaf3c99498a185492 Mon Sep 17 00:00:00 2001 From: Chris Marslender Date: Thu, 13 Jun 2024 22:32:43 -0500 Subject: [PATCH 1/2] Add manual config option --- docker-entrypoint.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 6485632..74f2a7a 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -11,6 +11,12 @@ cd /chia-blockchain || exit 1 # shellcheck disable=SC1091 . ./activate +if [ "$manual_config" = "true" ]; then + # Manual config mode skips everything below and lets you manage your config manually + exec "$@" + return +fi + # Set a few overrides if the service variable contains simulator if [ -z "${service##*simulator*}" ]; then echo "Setting up environment for simulator..." From 951a752729d7ce01a88d70485e4ee80a6cba7f39 Mon Sep 17 00:00:00 2001 From: Chris Marslender Date: Thu, 13 Jun 2024 22:34:15 -0500 Subject: [PATCH 2/2] Match syntax from elsewhere --- docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 74f2a7a..3a182d3 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -11,7 +11,7 @@ cd /chia-blockchain || exit 1 # shellcheck disable=SC1091 . ./activate -if [ "$manual_config" = "true" ]; then +if [[ ${manual_config} == "true" ]]; then # Manual config mode skips everything below and lets you manage your config manually exec "$@" return