Merge pull request #71 from andrerfneves/bugfix/create-zcashd-conf-file
Create zcash.conf if not exists on startup
This commit is contained in:
commit
937ff9e30c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue