Merge pull request #71 from andrerfneves/bugfix/create-zcashd-conf-file

Create zcash.conf if not exists on startup
This commit is contained in:
André Neves 2019-02-16 18:41:25 -05:00 committed by GitHub
commit 937ff9e30c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -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