From dace44ef16688b8bd48fe89e91b8c86739d5b1e8 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Wed, 9 Oct 2019 20:45:14 +0900 Subject: [PATCH] Better comments --- helpers.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/helpers.sh b/helpers.sh index 61abfed..543e88b 100755 --- a/helpers.sh +++ b/helpers.sh @@ -69,7 +69,9 @@ btcpay_update_docker_env() { btcpay_expand_variables touch $BTCPAY_ENV_FILE -# Fix up of a bug before +# In a previous release, BTCPAY_HOST_SSHAUTHORIZEDKEYS was not saved into the .env, so the next update after setup +# with BTCPAY_ENABLE_SSH set, BTCPAY_HOST_SSHAUTHORIZEDKEYS would get empty and break the SSH feature in btcpayserver +# This condition detect this situation, and fix up BTCPAY_HOST_SSHAUTHORIZEDKEYS if [[ "$BTCPAY_ENABLE_SSH" == "true" ]] && ! [[ "$BTCPAY_HOST_SSHAUTHORIZEDKEYS" ]]; then BTCPAY_HOST_SSHAUTHORIZEDKEYS=~/.ssh/authorized_keys BTCPAY_HOST_SSHKEYFILE=""