Move transmission dir to HDD so it doesn't have to verify if a new SD card is used
This commit is contained in:
parent
75c892a002
commit
bd7d1969c7
|
@ -82,5 +82,6 @@ fi
|
|||
echo "Running torrent..."
|
||||
transmission-cli \
|
||||
--download-dir $QUICKSYNC_DIR \
|
||||
--config-dir $QUICKSYNC_CONFIG_DIR \
|
||||
--finish=/usr/bin/mynode_quicksync_complete.sh \
|
||||
$QUICKSYNC_DIR/blockchain.torrent
|
||||
|
|
|
@ -50,6 +50,7 @@ done
|
|||
# Setup Drive
|
||||
mkdir -p /mnt/hdd/mynode
|
||||
mkdir -p /mnt/hdd/mynode/settings
|
||||
mkdir -p /mnt/hdd/mynode/.config
|
||||
mkdir -p /mnt/hdd/mynode/bitcoin
|
||||
mkdir -p /mnt/hdd/mynode/lnd
|
||||
mkdir -p /mnt/hdd/mynode/quicksync
|
||||
|
@ -149,6 +150,10 @@ USER=$(stat -c '%U' /mnt/hdd/mynode/settings)
|
|||
if [ "$USER" != "bitcoin" ]; then
|
||||
chown -R bitcoin:bitcoin /mnt/hdd/mynode/settings
|
||||
fi
|
||||
USER=$(stat -c '%U' /mnt/hdd/mynode/.config)
|
||||
if [ "$USER" != "bitcoin" ]; then
|
||||
chown -R bitcoin:bitcoin /mnt/hdd/mynode/.config
|
||||
fi
|
||||
USER=$(stat -c '%U' /mnt/hdd/mynode/bitcoin)
|
||||
if [ "$USER" != "bitcoin" ]; then
|
||||
chown -R bitcoin:bitcoin /mnt/hdd/mynode/bitcoin
|
||||
|
|
|
@ -13,7 +13,7 @@ SERIAL_NUM=$(cat /proc/cpuinfo | grep Serial | cut -d ' ' -f 2)
|
|||
# Set all default / standard bash config settings
|
||||
MYNODE_DIR=/mnt/hdd/mynode
|
||||
QUICKSYNC_DIR=/mnt/hdd/mynode/quicksync
|
||||
QUICKSYNC_CONFIG_DIR=/home/bitcoin/.config/transmission
|
||||
QUICKSYNC_CONFIG_DIR=/mnt/hdd/mynode/.config/transmission
|
||||
QUICKSYNC_TORRENT_URL="https://mynodebtc.com/device/blockchain.tar.gz.torrent"
|
||||
QUICKSYNC_BANDWIDTH_FILE="/mnt/hdd/mynode/settings/.bandwidth"
|
||||
LND_BACKUP_FOLDER="/home/bitcoin/lnd_backup/"
|
||||
|
|
|
@ -37,7 +37,8 @@ def delete_bitcoin_data():
|
|||
|
||||
def delete_quicksync_data():
|
||||
os.system("rm -rf /mnt/hdd/mynode/quicksync")
|
||||
os.system("rm -rf /home/bitcoin/.config/transmission")
|
||||
os.system("rm -rf /home/bitcoin/.config/transmission") # Old dir
|
||||
os.system("rm -rf /mnt/hdd/mynode/.config/transmission")
|
||||
|
||||
def delete_lnd_data():
|
||||
#os.system("rm -f "+LND_WALLET_FILE)
|
||||
|
|
Loading…
Reference in New Issue
Block a user