From b3a2b29814aa6bc96cec32c7559dad2e05eb0dc4 Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Thu, 21 Oct 2021 09:57:17 -0400 Subject: [PATCH] Update docker entrypoint --- zcutil/docker-entrypoint.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/zcutil/docker-entrypoint.sh b/zcutil/docker-entrypoint.sh index f8d29a15a..38009eae8 100755 --- a/zcutil/docker-entrypoint.sh +++ b/zcutil/docker-entrypoint.sh @@ -6,12 +6,13 @@ #set -ex echo "...Checking HUSH3.conf" -if [ ! -e "$HOME/.komodo/HUSH3/HUSH3.conf" ]; then - mkdir -p $HOME/.komodo/HUSH3 +# TODO: support legacy location? +if [ ! -e "$HOME/.hush/HUSH3/HUSH3.conf" ]; then + mkdir -p $HOME/.hush/HUSH3 DATE=$(date) echo "...Creating HUSH3.conf" - cat < $HOME/.komodo/HUSH3.conf + cat < $HOME/.hush/HUSH3.conf # Generated by docker-entrypoint.sh at $DATE rpcuser=hush rpcpassword=${rpcpassword:-`dd if=/dev/urandom bs=33 count=1 2>/dev/null | base64`} @@ -24,7 +25,7 @@ zdebug=0 zindex=0 EOF - cat $HOME/.komodo/HUSH3/HUSH3.conf + cat $HOME/.hush/HUSH3/HUSH3.conf fi if [ $# -gt 0 ]; then