From 7a0ce63199907e1446d72919618bf6da452a017c Mon Sep 17 00:00:00 2001 From: George Lima Date: Mon, 11 Feb 2019 12:22:16 -0300 Subject: [PATCH] chore(zcashd): create zcash.conf if not exists on startup --- bin/zcash-fetch-params | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bin/zcash-fetch-params b/bin/zcash-fetch-params index 522de80..2033cc9 100755 --- a/bin/zcash-fetch-params +++ b/bin/zcash-fetch-params @@ -2,6 +2,17 @@ set -eu +# Create default zcash.conf +if [[ "$OSTYPE" == "darwin"* ]]; then + if [ ! -e "$HOME/Library/Application Support/Zcash/zcash.conf" ] ; then + echo "server=1" > "$HOME/Library/Application Support/Zcash/zcash.conf" + fi +else + if [ ! -e "$HOME/.zcash/zcash.conf" ] ; then + echo "server=1" > "$HOME/.zcash/zcash.conf" + fi +fi + if [[ "$OSTYPE" == "darwin"* ]]; then PARAMS_DIR="$HOME/Library/Application Support/ZcashParams" else