mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-28 15:31:37 +00:00
10 lines
317 B
Bash
Executable File
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 |