Browse Source

up performance

master
Christian Rotzoll 6 years ago
parent
commit
e34bc3799f
  1. 11
      home.admin/50torrentHDD.sh

11
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

Loading…
Cancel
Save