From e34bc3799fe0f06880c6d21e6561bae85a70c4f9 Mon Sep 17 00:00:00 2001 From: Christian Rotzoll Date: Thu, 11 Apr 2019 23:21:29 +0100 Subject: [PATCH] up performance --- home.admin/50torrentHDD.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/home.admin/50torrentHDD.sh b/home.admin/50torrentHDD.sh index 0b1475e..8f0326e 100755 --- a/home.admin/50torrentHDD.sh +++ b/home.admin/50torrentHDD.sh @@ -28,14 +28,9 @@ fi echo "# TORRENT-FILES" echo "baseTorrent='${baseTorrentFile}'" echo "updateTorrent='${updateTorrentFile}'" -sleep 1 targetDir="/mnt/hdd/torrent" sessionDir="/home/admin/.rtorrent.session" -sudo mkdir ${sessionDir} 2>/dev/null -sudo mkdir ${targetDir} 2>/dev/null -sudo mkdir ${sessionDir}/blockchain/ 2>/dev/null -sudo mkdir ${sessionDir}/update/ 2>/dev/null # BACKUP TORRENT SEEDING if [ "$1" == "backup-torrent-hosting-cleanup" ]; then @@ -80,6 +75,12 @@ if [ "$1" == "backup-torrent-hosting-status" ]; then exit fi +# make sure folders exist +sudo mkdir ${sessionDir} 2>/dev/null +sudo mkdir ${targetDir} 2>/dev/null +sudo mkdir ${sessionDir}/blockchain/ 2>/dev/null +sudo mkdir ${sessionDir}/update/ 2>/dev/null + # make sure rtorrent is available sudo apt-get install rtorrent -y 1>/dev/null 2>/dev/null