I have a problem with a custom script.
1.
2.cd /var/packages/DownloadStation/scripts
vi start-stop-status
### --- stop deleting settings
### rm ${PACKAGE_DIR}/etc/download/settings.json
3.cd /usr/syno/etc/packages/DownloadStation/download
vi settings.json
"script-torrent-done-enabled": true,
"script-torrent-done-filename": "/volume1/scripts/filebot.sh",
The scriptchmod -R a+rwx /volume1/scripts
The script is never executed.#!/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
Thx