bmdegraaf Posted May 6, 2015 Share Posted May 6, 2015 i have been breaking my head around setting permissions to my downloads. Currently i can only move rename etc... Wheni run the new permissions from unraid or SSH into unraid toreset the permissions. Is there a smart automatic way around this? Quote Link to comment
sparklyballs Posted May 6, 2015 Share Posted May 6, 2015 create a script called complete-torrents.sh and make it executable and place it in the config folder for deluge. with the following content. #!/bin/bash torrentid="$1" torrentname="$2" torrentpath="$3" chmod -R u-x,go-rwx,go+u,ugo+X "$torrentpath/$torrentname" then in the deluge interface... select preferences , execute , and an event and select torrent complete and browse for the script and apply. Quote Link to comment
sparklyballs Posted May 6, 2015 Share Posted May 6, 2015 i don't use binhex's deluge, i forked my own from needo's, so i don't know whether it runs as nobody in binhex container. if it doesn't you may need to add this line chown -R nobody:users "$torrentpath/$torrentname" directly before or after the chmod line. Quote Link to comment
trurl Posted May 6, 2015 Share Posted May 6, 2015 i have been breaking my head around setting permissions to my downloads. Currently i can only move rename etc... Wheni run the new permissions from unraid or SSH into unraid toreset the permissions. Is there a smart automatic way around this? Has this been reported by anyone else on binhex's docker support thread? I have to wonder if it isn't something specific to your configuration. I don't use this docker, but I do use a transmission docker for torrents, and I have never had this problem. Quote Link to comment
bmdegraaf Posted May 7, 2015 Author Share Posted May 7, 2015 Got the script working.....!! Many thanks. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.