Im using freenas and is trying to set it up in a jail that i already have transmission up and running in.
Script looks like this:
Code: Select all
#!/bin/bash
find $TR_TORRENT_DIR/$TR_TORRENT_NAME -name “*.rar” -exec unrar e “{}” “$TR_TORRENT_DIR/$TR_TORRENT_NAME/” \;
i have changed the settings in settings.json
i have run
Code: Select all
chmod a+x /home/unrar_file.sh
chmod 777 /home/unrar_file.sh
I'm very new to bash and scripting etc. I dont know if im maybe missing some dependancy or maybe the script is bad.
I have tried looking in /bin folder and cant find bash, i dont know if this has something to do with it.
I have done pkg install bash
and pkg install unrar
the script is one i found on google.