Code: Select all
if [ "$NZBPP_TOTALSTATUS"] != "SUCCESS" ]; then
Code: Select all
if [ "$NZBPP_TOTALSTATUS" != "SUCCESS" ]; then
Without the space:update: /bin/sh: can't open ' '
I suspect this may be an issue in that nzbGet is being run inside docker, so the compiler directive sees the wrong path:update: Could not start /downloads/scripts/update.sh: No such file or directory
Code: Select all
#!/bin/sh
######################################
### NZBGET POST-PROCESSING SCRIPT ###
# Add to Syno index.
### NZBGET POST-PROCESSING SCRIPT ###
######################################
if [ "$NZBPP_TOTALSTATUS" != "SUCCESS/ALL" ]; then
echo "Download failed, skipping Syno index";
exit 95;
fi
echo "[INFO] Adding to Syno index"
if [ "$NZBPP_FINALDIR" != "" ]; then
NZBPP_DIRECTORY = "$NZBPP_FINALDIR"
fi;
/usr/syno/bin/synoindex -R video
exit 93;
Code: Select all
if [ "$NZBPP_TOTALSTATUS" != "SUCCESS/ALL" ]; then
It seems you edit the file using a text editor on Windows. You should save the file using Unix line endings. Many text editors can do this (for example Notepad2 or Notepad++).ronrosenfeld wrote: ↑20 Feb 2018, 12:34update: /bin/sh: can't open ' '
update: Could not start /downloads/scripts/update.sh: No such file or directory
There may be a method of determining this.
Code: Select all
"DupeKey" : "SickRage-328487-1.8"
Code: Select all
http://192.168.1.215:8080/api/...sickrage_api_key.../?cmd=episode&indexerid=328487&season=1&episode=8&full_path=1
There are no constraints.ronrosenfeld wrote: ↑21 Feb 2018, 21:59Is doing this something that is possible within the constraints of PP Scripts?
Users browsing this forum: No registered users and 32 guests