- Minor
I'm trying to set up a notification on my backup server for when the backup finishes:
/usr/local/emhttp/webGui/scripts/notify -e "Rclone" -s "Backup Complete" -d "$(grep ETA rclone-test.log | sed 's/B.*/B/g')" -m "$(sed 's/$/\<br\>/' rclone-test.log|tr -d '\n')" -i "normal"
But for whatever reason, this does not seem to trigger a discord notification. It works fine on my main server running 6.12.10, although when I do that I get an error (even though it does create the discord notification):
/boot/config/plugins/dynamix/notifications/agents/._Discord.sh: /boot/config/plugins/dynamix/notifications/agents/._Discord.sh: cannot execute binary file
Edit: I should note that it does work when I do the "test" notification in the gui, so it's not an issue with the webhook url
Edit2: I just tested this with ```/usr/local/emhttp/webGui/scripts/notify -s "TEST"``` and got no output in Discord
Edit3: Did some more testing::
This outputs no issues to discord:
EVENT="Rclone" SUBJECT="Backup Complete" DESCRIPTION="$(grep ETA rclone-test.log | sed 's/B.*/B/g'|tr -d '\t')" CONTENT="$(sed 's/$/\<br\>\\n/' rclone-test.log|tr -d '\t')" IMPORTANCE="normal" bash /boot/config/plugins/dynamix/notifications/agents/Discord.sh
This outputs to the unraid notifications, but not discord:
EVENT="Rclone" SUBJECT="Backup Complete" DESCRIPTION="$(grep ETA rclone-test.log | sed 's/B.*/B/g'|tr -d '\t')" CONTENT="$(sed 's/$/\<br\>\\n/' rclone-test.log|tr -d '\t')" IMPORTANCE="normal" notify -e "$EVENT" -s "$SUBJECT" -d "$DESCRIPTION" -m "$CONTENT" -i "$IMPORTANCE"
So I think the issue is somewhere inside the notify script that's not calling the discord script.