chore(zcashd): create zcash.conf if not exists on startup

This commit is contained in:
George Lima 2019-02-11 12:22:16 -03:00
parent 014111097c
commit 7a0ce63199
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