2019-08-20 01:36:58 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
source /usr/share/mynode/mynode_config.sh
|
|
|
|
|
|
|
|
set -x
|
|
|
|
|
|
|
|
sleep 60s
|
|
|
|
|
|
|
|
# Give admin the ability to access the BTC cookie
|
|
|
|
cp -f /mnt/hdd/mynode/bitcoin/.cookie /home/admin/.bitcoin/.cookie
|
|
|
|
chown admin:admin /home/admin/.bitcoin/.cookie
|
|
|
|
|
2021-02-18 03:22:05 +00:00
|
|
|
# Make default wallets
|
|
|
|
bitcoin-cli createwallet joinmarket_wallet.dat > /dev/null 2>&1 || true
|
|
|
|
bitcoin-cli loadwallet joinmarket_wallet.dat > /dev/null 2>&1 || true
|
|
|
|
|
2019-08-20 01:36:58 +00:00
|
|
|
# Sync FS
|
|
|
|
sync
|