-
Notifications
You must be signed in to change notification settings - Fork 4
Install Script
Justin edited this page Jun 12, 2023
·
6 revisions
The bash script Install_TrailerTech.sh in the root of this repo was created with the intention of being run upon docker container creation. If you run Radarr using the LinuxServer.io image some of the work has been done for you. Follow the instructions below to add this automation. If you are running Radarr differently you may need to Manual Install.
- In your docker-compose file map a directory of your choosing to
/custom-cont-init.d. ex/docker/radarr/startup-scripts:/custom-cont-init.d1.a./custom-cont-init.dcan not be located within the/configdirectory and must be mapped separately in your docker-compose file. - Within that directory create a file named
Install_TrailerTech.sh - Copy the contents of 'Install_TrailerTech.sh` in this repo to the file you just created
- Adjust the settings to your liking at the start of that file. By default PUID and PGID are the same as the container. Change the install location if needed.
- If you already have the container running stop and remove the container
- Finally rebuild your container. This time, the custom script will be run and your new script by default will be located at
/config/scripts/TrailerTech
This must be done every time you rebuild the container
- Once your container is up and running run the command
docker exec -it <containerName> /bin/bash - Run the following commands:
apt update -yapt install git python3 python3-pip ffmpeg -yqmkdir -p /config/scripts/TrailerTechgit clone https://github.com/jsaddiction/TrailerTech.git /config/scripts/TrailerTechsh /config/scripts/TrailerTech/Install_TrailerTech.sh
This must also be done every time the container is built execute the following command once your container is up and functioning:
docker exec radarr2 bash -c "apt update -y ; apt install git python3 python3-pip ffmpeg -yq ; mkdir -p /config/scripts/TrailerTech ; git clone https://github.com/jsaddiction/TrailerTech.git /config/scripts/TrailerTech ; sh /config/scripts/TrailerTech/Install_TrailerTech.sh"