Announcement

Collapse
No announcement yet.

[QNAP] Help with LFTP script

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [QNAP] Help with LFTP script

    Here is the script I am using (pulled straight from my UNRAID server

    Code:
    #!/bin/sh
    
    login=login
    pass=pass
    host="host" 
    
    trap "rm -f /tmp/synctorrent.lock" SIGINT SIGTERM
    if [ -e /tmp/synctorrent.lock ]
    then
    echo "Synctorrent is running already."
    exit 1
    else
    touch /tmp/synctorrent.lock
    
    lftp <<EOF
    set ftp:ssl-auth TLS
    set ftp:ssl-force true
    set ftp:ssl-protect-list yes
    set ftp:ssl-protect-data yes
    set ssl:verify-certificate off
    open -u $login,$pass $host
    chmod -R 666 /downloads/sync/
    mirror -c --use-pget-n=8 --Remove-source-files --log=/share/Download/synctorrents_movies.log    /downloads/sync /share/Download/renamer
    quit 0
    EOF
    
    rm -f /tmp/synctorrent.lock
    trap - SIGINT SIGTERM
    exit 0
    fi

    I am trying to get this to work on my QNAP.
    I tried executing the script ./synctorrents and get the following: Any ideas???

    Code:
    [/share/Public] # ./synctorrents.sh
    chmod: Fatal error: Host key verification failed
    chmod: Fatal error: Host key verification failed
    mirror: Fatal error: Host key verification failed
Working...
X