mynode/rootfs/standard/usr/bin/mynode_gen_pool_config.sh
2021-03-08 21:55:39 -06:00

10 lines
317 B
Bash
Executable File

#!/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