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 »

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
Post Reply