mynode/rootfs/standard/usr/bin/mynode_gen_pool_config.sh

10 lines
317 B
Bash
Raw Normal View History

2021-03-09 03:55:39 +00:00
#!/bin/bash
# Gen environment file to swap mainnet/testnet
echo "" > /mnt/hdd/mynode/pool/env
if [ -f /mnt/hdd/mynode/settings/.testnet_enabled ]; then
echo "NETWORK=testnet" >> /mnt/hdd/mynode/pool/env
else
echo "NETWORK=mainnet" >> /mnt/hdd/mynode/pool/env
fi
chown bitcoin:bitcoin /mnt/hdd/mynode/pool/env