Script never executed (Synology)

Discussion of Transmission that doesn't fit in the other categories
Post Reply
Tovich
Posts: 1
Joined: Thu Aug 25, 2016 9:56 am

Script never executed (Synology)

Post by Tovich » Thu Aug 25, 2016 9:58 am

Hi,

I have a problem with a custom script.

1.
cd /var/packages/DownloadStation/scripts
vi start-stop-status

### --- stop deleting settings
### rm ${PACKAGE_DIR}/etc/download/settings.json
2.
cd /usr/syno/etc/packages/DownloadStation/download
vi settings.json

"script-torrent-done-enabled": true,
"script-torrent-done-filename": "/volume1/scripts/filebot.sh",
3.
chmod -R a+rwx /volume1/scripts
The script
#!/bin/sh
if [ -d /volumeUSB1/usbshare ]
then
echo "Executing filebot..."
filebot -script fn:amc --output "/volumeUSB1/usbshare" --action move -non-strict "/volume1/downloads" --log-file amc.log --def excludeList=amc.txt --lang fr
synodsmnotify @administrators "Filebot script" "Properly executed."
fi
The script is never executed.
Thx

x190
Posts: 5094
Joined: Sun Nov 30, 2008 4:59 am

Re: Script never executed (Synology)

Post by x190 » Thu Aug 25, 2016 4:24 pm

Search 'filebot' on the forum.

Did you stop the daemon before editing the settings? What's in Transmission's log?
The stone age didn’t end because we ran out of stones.
---The Great Disruption - by Paul Gilding
https://paulgilding.com/
-------------------------------------------------

Post Reply