Browse Source

set permissions for torrent

v1.3
Christian Rotzoll 6 years ago
parent
commit
a4996ec442
  1. 6
      home.admin/50torrentHDD.sh

6
home.admin/50torrentHDD.sh

@ -29,11 +29,15 @@ echo "updateTorrent='${updateTorrentFile}'"
targetDir="/mnt/hdd/torrent"
sessionDir="/home/admin/.rtorrent.session"
# make sure folders exist
# make sure folders exist & permissions are set
sudo mkdir ${sessionDir} 2>/dev/null
sudo chmod 777 ${sessionDir} 2>/dev/null
sudo mkdir ${targetDir} 2>/dev/null
sudo chmod 777 ${targetDir} 2>/dev/null
sudo mkdir ${sessionDir}/blockchain/ 2>/dev/null
sudo chmod 777 ${sessionDir}/blockchain/ 2>/dev/null
sudo mkdir ${sessionDir}/update/ 2>/dev/null
sudo chmod 777 ${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