Hello,
Thanks in advance for taking the time to take a look. I’m working to create a script which will use curl to send a notification via my selfhosted instance of ntfy.
The script is running and doing what I want it to do however after each run a warning is presented within the GUI and I’m not sure why.
System Details:
- Docker Container (lscr.io/linuxserver/duplicati) hosted on unraid.
- Up to date.
- Version from GUI: 2.0.7.1_beta_2023-05-25
Warning displayed:
2023-10-04 11:23:55 +01 - [Warning-Duplicati.Library.Modules.Builtin.RunScript-StdErrorNotEmpty]: The script “/scripts/duplicati-backup.sh” reported error messages: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0 100 233 100 196 100 37 501 94 --:–:-- --:–:-- --:–:-- 595
Script:
#!/bin/bash
BKUPRESULT=$DUPLICATI__PARSED_RESULT
JOBNAME=$DUPLICATI__backup_name
NTFY=https://ntfy.xxxx.xxxx/topic
if [ $BKUPRESULT == “Success” ]
then
curl -H “Title: $JOBNAME Complete” -H “Priority: default” -d “Backup Completed with Status: $BKUPRESULT” $NTFY
fi
exit 0
It appears to present the warning as soon as the curl statement is input. I’m very much a novice when it comes to scripting especially with linux. So any help/direction would be great!
J