From 7f039794d815dc33b3ceeed7897a9e5606f9e921 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Thu, 3 Aug 2023 09:40:41 -0400 Subject: [PATCH] Create setup.bash --- ra-rom-downloader/setup.bash | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 ra-rom-downloader/setup.bash diff --git a/ra-rom-downloader/setup.bash b/ra-rom-downloader/setup.bash new file mode 100644 index 0000000..e91e83f --- /dev/null +++ b/ra-rom-downloader/setup.bash @@ -0,0 +1,38 @@ +#!/usr/bin/with-contenv bash +RAHASHER_PATH="/usr/local/RALibretro" +echo "************ install dependencies ************" +echo "************ install and upgrade packages ************" +apt-get update +apt-get upgrade -y +apt-get install -y \ + jq \ + unzip \ + gzip \ + git \ + p7zip-full \ + curl \ + unrar \ + axel \ + zip \ + python3-pip + +echo "************ RAHasher installation ************" +mkdir -p ${RAHASHER_PATH} +wget "https://github.com/RetroAchievements/RALibretro/releases/download/1.4.0/RAHasher-x64-Linux-1.6.0.zip" -O "${RAHASHER_PATH}/rahasher.zip" +unzip "${RAHASHER_PATH}/rahasher.zip" -d ${RAHASHER_PATH} +chmod -R 777 ${RAHASHER_PATH} + +mkdir -p /custom-services.d +echo "Download Downloader service..." +curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/ra-rom-downloader/Downloader.bash -o /custom-services.d/Downloader +echo "Done" +chmod 777 /custom-services.d/Downloader + +if [ ! -f /config/extended.conf ]; then + echo "Download Extended config..." + curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/radarr/extended.conf -o /config/extended.conf + chmod 777 /config/extended.conf + echo "Done" +fi + +exit