automatic unrar when download completed

  • Hey,


    using a rtorrent docker container and getting this error message when Im trying to unpack anything from rutorrent:
    /usr/share/webapps/rutorrent/plugins/unpack/unrar_dir.sh: line 33: unrar: not found


    and there is no such directory, I don't have rutrorrent in webapps.
    Anyone know how to get auto unrar after completed download to work?


  • And you have rar / unrar installed?


    I can ask why did you decide on the rtorrent in docker? What are your reasons for this than letting it go normally?

    Yes, I've unrar installed in OMV,
    What do you mean letting it go normally? How should I've installed rtorrent in omv?

  • Oh got you,
    Well, I have no special reason, I got recommended rT in docker and just did go with it.


    That's the problem, I do have /usr/share/ but not the following part /webapps.
    I cannot find it anywhere :(

  • @Mr.Grape hol up, my mistake, I now did ssh into the container and found the correct path: /usr/share/webapps/rutorrent/plugins/unpack/unpack_dir.sh. But I cannot edit it since nano or vim is not installed, and cannot install either since apt-get isnt installed. How do I edit it to see what's on line 33? :)

  • How do I edit it to see what's on line 33?

    head -n33 /usr/share/webapps/rutorrent/plugins/unpack/unpack_dir.sh | tail -n1


    to change it:


    sed -i "s/OLD LINE TEXT/NEW LINE TEXT/" /usr/share/webapps/rutorrent/plugins/unpack/unpack_dir.sh

    omv 5.5.23 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.4.5
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

    Edited once, last by ryecoaaron ().

  • @ryecoaaron


    root@59609c621db1:/$ head -n33 test1 | tail -n1 /usr/share/webapps/rutorrent/plugins/unpack/unpack_dir.shtail: cannot open '/usr/share/webapps/rutorrent/plugins/unpack/unpack_dir.sh' for reading: No such file or directoryhead: cannot open 'test1' for reading: No such file or directory


    I get this when I copying the first line.

  • However when I do paste that it's giving me a new line only.

    Then line 33 is not the one you want. Just cat the file to see it and the sed should still work. Either that or wget the nano .deb from the debian repos.

    omv 5.5.23 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.4.5
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!