#!/bin/bash
torrentid=$1
torrentname=$2
torrentpath=$3

#subject="Started download new torrent!"
#message="$torrentname to $torrentpath"

echo -e `date`"::Started download torrent:$2 in: $3" with id:$torrentid >> /home/Zagarott/.config/deluge/logs/added_torrents.log

echo "Running chmod on $2 (ID: $1, Path: $3)"> /home/Zagarott/.config/deluge/logs/chmod.log
chmod -R 775 $3/ >> /home/Zagarott/.config/deluge/logs/chmod.log