diff --git a/ct/lidarr.sh b/ct/lidarr.sh index 087c006f5..9907f4f82 100644 --- a/ct/lidarr.sh +++ b/ct/lidarr.sh @@ -20,18 +20,29 @@ color catch_errors function update_script() { - header_info - check_container_storage - check_container_resources - if [[ ! -d /var/lib/lidarr/ ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - msg_info "Updating $APP LXC" - $STD apt-get update - $STD apt-get -y upgrade - msg_ok "Updated $APP LXC" + header_info + check_container_storage + check_container_resources + + if [[ ! -d /var/lib/lidarr/ ]]; then + msg_error "No ${APP} Installation Found!" exit + fi + + msg_info "Updating $APP LXC" + temp_file="$(mktemp)" + rm -rf /opt/Lidarr + RELEASE=$(curl -fsSL https://api.github.com/repos/Lidarr/Lidarr/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') + curl -fsSL "https://github.com/Lidarr/Lidarr/releases/download/v${RELEASE}/Lidarr.master.${RELEASE}.linux-core-x64.tar.gz" -o "$temp_file" + $STD tar -xvzf "$temp_file" + mv Lidarr /opt + chmod 775 /opt/Lidarr + msg_ok "Updated $APP LXC" + + msg_info "Cleaning up" + rm -rf "$temp_file" + msg_ok "Cleaned up" + exit } start @@ -41,4 +52,4 @@ description msg_ok "Completed Successfully!\n" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8686${CL}" \ No newline at end of file +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8686${CL}" diff --git a/ct/prowlarr.sh b/ct/prowlarr.sh index 3b4309e2b..73453f1b6 100644 --- a/ct/prowlarr.sh +++ b/ct/prowlarr.sh @@ -20,15 +20,29 @@ color catch_errors function update_script() { - header_info - check_container_storage - check_container_resources - if [[ ! -d /var/lib/prowlarr/ ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - msg_error "Currently we don't provide an update function for this ${APP}." + header_info + check_container_storage + check_container_resources + + if [[ ! -d /var/lib/prowlarr/ ]]; then + msg_error "No ${APP} Installation Found!" exit + fi + + msg_info "Updating $APP LXC" + temp_file="$(mktemp)" + rm -rf /opt/Prowlarr + RELEASE=$(curl -fsSL https://api.github.com/repos/Prowlarr/Prowlarr/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') + curl -fsSL "https://github.tcom/Prowlarr/Prowlarr/releases/download/v${RELEASE}/Prowlarr.master.${RELEASE}.linux-core-x64.tar.gz" -o "$temp_file" + $STD tar -xvzf "$temp_file" + mv Prowlarr /opt + chmod 775 /opt/Prowlarr + msg_ok "Updated $APP LXC" + + msg_info "Cleaning up" + rm -f "$temp_file" + msg_ok "Cleaned up" + exit } start @@ -38,4 +52,4 @@ description msg_ok "Completed Successfully!\n" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:9696${CL}" \ No newline at end of file +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:9696${CL}" diff --git a/ct/radarr.sh b/ct/radarr.sh index 946bcee51..d414c6f6a 100644 --- a/ct/radarr.sh +++ b/ct/radarr.sh @@ -20,15 +20,29 @@ color catch_errors function update_script() { - header_info - check_container_storage - check_container_resources - if [[ ! -d /var/lib/radarr/ ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - msg_error "Currently we don't provide an update function for this ${APP}." + header_info + check_container_storage + check_container_resources + + if [[ ! -d /var/lib/radarr/ ]]; then + msg_error "No ${APP} Installation Found!" exit + fi + + msg_info "Updating $APP LXC" + temp_file="$(mktemp)" + rm -rf /opt/Radarr + RELEASE=$(curl -fsSL https://api.github.com/repos/Radarr/Radarr/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') + curl -fsSL "https://github.com/Radarr/Radarr/releases/download/v${RELEASE}/Radarr.master.${RELEASE}.linux-core-x64.tar.gz" -o "$temp_file" + $STD tar -xvzf "$temp_file" + mv Radarr /opt + chmod 775 /opt/Radarr + msg_ok "Updated $APP LXC" + + msg_info "Cleaning up" + rm -rf "$temp_file" + msg_ok "Cleaned up" + exit } start @@ -38,4 +52,4 @@ description msg_ok "Completed Successfully!\n" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:7878${CL}" \ No newline at end of file +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:7878${CL}" diff --git a/frontend/public/json/lidarr.json b/frontend/public/json/lidarr.json index ecb263202..bfbdf3386 100644 --- a/frontend/public/json/lidarr.json +++ b/frontend/public/json/lidarr.json @@ -1,34 +1,34 @@ { - "name": "Lidarr", - "slug": "lidarr", - "categories": [ - 14 - ], - "date_created": "2024-05-02", - "type": "ct", - "updateable": false, - "privileged": false, - "interface_port": 8686, - "documentation": null, - "website": "https://lidarr.audio/", - "logo": "https://raw.githubusercontent.com/selfhst/icons/refs/heads/main/svg/lidarr.svg", - "description": "Lidarr is a music management tool designed for Usenet and BitTorrent users. It allows users to manage and organize their music collection with ease. Lidarr integrates with popular Usenet and BitTorrent clients, such as Sonarr and Radarr, to automate the downloading and organizing of music files. The software provides a web-based interface for managing and organizing music, making it easy to search and find songs, albums, and artists. Lidarr also supports metadata management, including album art, artist information, and lyrics, making it easy for users to keep their music collection organized and up-to-date. The software is designed to be easy to use and provides a simple and intuitive interface for managing and organizing music collections, making it a valuable tool for music lovers who want to keep their collection organized and up-to-date. With Lidarr, users can enjoy their music collection from anywhere, making it a powerful tool for managing and sharing music files.", - "install_methods": [ - { - "type": "default", - "script": "ct/lidarr.sh", - "resources": { - "cpu": 2, - "ram": 1024, - "hdd": 4, - "os": "debian", - "version": "12" - } - } - ], - "default_credentials": { - "username": null, - "password": null - }, - "notes": [] + "name": "Lidarr", + "slug": "lidarr", + "categories": [ + 14 + ], + "date_created": "2024-05-02", + "type": "ct", + "updateable": true, + "privileged": false, + "interface_port": 8686, + "documentation": null, + "website": "https://lidarr.audio/", + "logo": "https://raw.githubusercontent.com/selfhst/icons/refs/heads/main/svg/lidarr.svg", + "description": "Lidarr is a music management tool designed for Usenet and BitTorrent users. It allows users to manage and organize their music collection with ease. Lidarr integrates with popular Usenet and BitTorrent clients, such as Sonarr and Radarr, to automate the downloading and organizing of music files. The software provides a web-based interface for managing and organizing music, making it easy to search and find songs, albums, and artists. Lidarr also supports metadata management, including album art, artist information, and lyrics, making it easy for users to keep their music collection organized and up-to-date. The software is designed to be easy to use and provides a simple and intuitive interface for managing and organizing music collections, making it a valuable tool for music lovers who want to keep their collection organized and up-to-date. With Lidarr, users can enjoy their music collection from anywhere, making it a powerful tool for managing and sharing music files.", + "install_methods": [ + { + "type": "default", + "script": "ct/lidarr.sh", + "resources": { + "cpu": 2, + "ram": 1024, + "hdd": 4, + "os": "debian", + "version": "12" + } + } + ], + "default_credentials": { + "username": null, + "password": null + }, + "notes": [] } diff --git a/frontend/public/json/prowlarr.json b/frontend/public/json/prowlarr.json index 6873b9fa9..9020a2393 100644 --- a/frontend/public/json/prowlarr.json +++ b/frontend/public/json/prowlarr.json @@ -1,34 +1,34 @@ { - "name": "Prowlarr", - "slug": "prowlarr", - "categories": [ - 14 - ], - "date_created": "2024-05-02", - "type": "ct", - "updateable": false, - "privileged": false, - "interface_port": 9696, - "documentation": null, - "website": "https://github.com/Prowlarr/Prowlarr", - "logo": "https://raw.githubusercontent.com/selfhst/icons/refs/heads/main/svg/prowlarr.svg", - "description": "Prowlarr is a software tool designed to integrate with various PVR (Personal Video Recorder) apps. It is built on a popular *arr .net/ReactJS base stack and serves as an indexer manager and proxy. Prowlarr makes it easy to manage and organize TV show and movie collections, by integrating with popular PVR apps and automating the downloading and organizing of media files. The software provides a web-based interface for managing and organizing TV shows and movies, making it easy to search and find content. Prowlarr also supports metadata management, including show and movie information, making it easy for users to keep their media collection organized and up-to-date. The software is designed to be easy to use and provides a simple and intuitive interface for managing and organizing media collections, making it a valuable tool for media enthusiasts who want to keep their collection organized and up-to-date. With Prowlarr, users can enjoy their media collection from anywhere, making it a powerful tool for managing and sharing media files.", - "install_methods": [ - { - "type": "default", - "script": "ct/prowlarr.sh", - "resources": { - "cpu": 2, - "ram": 1024, - "hdd": 4, - "os": "debian", - "version": "12" - } - } - ], - "default_credentials": { - "username": null, - "password": null - }, - "notes": [] + "name": "Prowlarr", + "slug": "prowlarr", + "categories": [ + 14 + ], + "date_created": "2024-05-02", + "type": "ct", + "updateable": true, + "privileged": false, + "interface_port": 9696, + "documentation": null, + "website": "https://github.com/Prowlarr/Prowlarr", + "logo": "https://raw.githubusercontent.com/selfhst/icons/refs/heads/main/svg/prowlarr.svg", + "description": "Prowlarr is a software tool designed to integrate with various PVR (Personal Video Recorder) apps. It is built on a popular *arr .net/ReactJS base stack and serves as an indexer manager and proxy. Prowlarr makes it easy to manage and organize TV show and movie collections, by integrating with popular PVR apps and automating the downloading and organizing of media files. The software provides a web-based interface for managing and organizing TV shows and movies, making it easy to search and find content. Prowlarr also supports metadata management, including show and movie information, making it easy for users to keep their media collection organized and up-to-date. The software is designed to be easy to use and provides a simple and intuitive interface for managing and organizing media collections, making it a valuable tool for media enthusiasts who want to keep their collection organized and up-to-date. With Prowlarr, users can enjoy their media collection from anywhere, making it a powerful tool for managing and sharing media files.", + "install_methods": [ + { + "type": "default", + "script": "ct/prowlarr.sh", + "resources": { + "cpu": 2, + "ram": 1024, + "hdd": 4, + "os": "debian", + "version": "12" + } + } + ], + "default_credentials": { + "username": null, + "password": null + }, + "notes": [] } diff --git a/frontend/public/json/radarr.json b/frontend/public/json/radarr.json index 36e842216..78903b3f7 100644 --- a/frontend/public/json/radarr.json +++ b/frontend/public/json/radarr.json @@ -1,34 +1,34 @@ { - "name": "Radarr", - "slug": "radarr", - "categories": [ - 14 - ], - "date_created": "2024-05-02", - "type": "ct", - "updateable": false, - "privileged": false, - "interface_port": 7878, - "documentation": null, - "website": "https://radarr.video/", - "logo": "https://raw.githubusercontent.com/selfhst/icons/refs/heads/main/svg/radarr.svg", - "description": "Radarr is a movie management tool designed for Usenet and BitTorrent users. It allows users to manage and organize their movie collection with ease. Radarr integrates with popular Usenet and BitTorrent clients, such as Sonarr and Lidarr, to automate the downloading and organizing of movie files. The software provides a web-based interface for managing and organizing movies, making it easy to search and find titles, genres, and release dates. Radarr also supports metadata management, including movie posters and information, making it easy for users to keep their movie collection organized and up-to-date. The software is designed to be easy to use and provides a simple and intuitive interface for managing and organizing movie collections, making it a valuable tool for movie enthusiasts who want to keep their collection organized and up-to-date. With Radarr, users can enjoy their movie collection from anywhere, making it a powerful tool for managing and sharing movie files.", - "install_methods": [ - { - "type": "default", - "script": "ct/radarr.sh", - "resources": { - "cpu": 2, - "ram": 1024, - "hdd": 4, - "os": "debian", - "version": "12" - } - } - ], - "default_credentials": { - "username": null, - "password": null - }, - "notes": [] + "name": "Radarr", + "slug": "radarr", + "categories": [ + 14 + ], + "date_created": "2024-05-02", + "type": "ct", + "updateable": true, + "privileged": false, + "interface_port": 7878, + "documentation": null, + "website": "https://radarr.video/", + "logo": "https://raw.githubusercontent.com/selfhst/icons/refs/heads/main/svg/radarr.svg", + "description": "Radarr is a movie management tool designed for Usenet and BitTorrent users. It allows users to manage and organize their movie collection with ease. Radarr integrates with popular Usenet and BitTorrent clients, such as Sonarr and Lidarr, to automate the downloading and organizing of movie files. The software provides a web-based interface for managing and organizing movies, making it easy to search and find titles, genres, and release dates. Radarr also supports metadata management, including movie posters and information, making it easy for users to keep their movie collection organized and up-to-date. The software is designed to be easy to use and provides a simple and intuitive interface for managing and organizing movie collections, making it a valuable tool for movie enthusiasts who want to keep their collection organized and up-to-date. With Radarr, users can enjoy their movie collection from anywhere, making it a powerful tool for managing and sharing movie files.", + "install_methods": [ + { + "type": "default", + "script": "ct/radarr.sh", + "resources": { + "cpu": 2, + "ram": 1024, + "hdd": 4, + "os": "debian", + "version": "12" + } + } + ], + "default_credentials": { + "username": null, + "password": null + }, + "notes": [] } diff --git a/install/lidarr-install.sh b/install/lidarr-install.sh index c15e4856b..cd7f33530 100644 --- a/install/lidarr-install.sh +++ b/install/lidarr-install.sh @@ -14,17 +14,19 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y sqlite3 -$STD apt-get install -y libchromaprint-tools -$STD apt-get install -y mediainfo +$STD apt-get install -y \ + sqlite3 \ + libchromaprint-tools \ + mediainfo msg_ok "Installed Dependencies" msg_info "Installing Lidarr" +temp_file="$(mktemp)" mkdir -p /var/lib/lidarr/ chmod 775 /var/lib/lidarr/ -cd /var/lib/lidarr/ -$STD curl -fsSL 'https://lidarr.servarr.com/v1/update/master/updatefile?os=linux&runtime=netcore&arch=x64' -o lidarr.tar.gz -$STD tar -xvzf lidarr.tar.gz +RELEASE=$(curl -fsSL https://api.github.com/repos/Lidarr/Lidarr/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') +curl -fsSL "https://github.com/Lidarr/Lidarr/releases/download/v${RELEASE}/Lidarr.master.${RELEASE}.linux-core-x64.tar.gz" -o "$temp_file" +$STD tar -xvzf "$temp_file" mv Lidarr /opt chmod 775 /opt/Lidarr msg_ok "Installed Lidarr" @@ -44,15 +46,14 @@ Restart=on-failure [Install] WantedBy=multi-user.target EOF -systemctl -q daemon-reload -systemctl enable --now -q lidarr +systemctl enable -q --now lidarr msg_ok "Created Service" motd_ssh customize msg_info "Cleaning up" -rm -rf Lidarr.master.*.tar.gz +rm -rf "$temp_file" $STD apt-get -y autoremove $STD apt-get -y autoclean msg_ok "Cleaned" diff --git a/install/prowlarr-install.sh b/install/prowlarr-install.sh index 2e5162a36..26864af05 100644 --- a/install/prowlarr-install.sh +++ b/install/prowlarr-install.sh @@ -18,11 +18,13 @@ $STD apt-get install -y sqlite3 msg_ok "Installed Dependencies" msg_info "Installing Prowlarr" +temp_file="$(mktemp)" mkdir -p /var/lib/prowlarr/ chmod 775 /var/lib/prowlarr/ -cd /var/lib/prowlarr/ -$STD curl -fsSL 'https://prowlarr.servarr.com/v1/update/master/updatefile?os=linux&runtime=netcore&arch=x64' -o prowlarr.tar.gz -$STD tar -xvzf prowlarr.tar.gz +cd /var/lib/prowlarr/ || exit +RELEASE=$(curl -fsSL https://api.github.com/repos/Prowlarr/Prowlarr/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') +curl -fsSL "https://github.tcom/Prowlarr/Prowlarr/releases/download/v${RELEASE}/Prowlarr.master.${RELEASE}.linux-core-x64.tar.gz" -o "$temp_file" +$STD tar -xvzf "$temp_file" mv Prowlarr /opt chmod 775 /opt/Prowlarr msg_ok "Installed Prowlarr" @@ -42,15 +44,14 @@ Restart=on-failure [Install] WantedBy=multi-user.target EOF -systemctl -q daemon-reload -systemctl enable --now -q prowlarr +systemctl enable -q --now prowlarr msg_ok "Created Service" motd_ssh customize msg_info "Cleaning up" -rm -rf Prowlarr.master.*.tar.gz +rm -f "$temp_file" $STD apt-get -y autoremove $STD apt-get -y autoclean msg_ok "Cleaned" diff --git a/install/radarr-install.sh b/install/radarr-install.sh index b01675eda..1c9929967 100644 --- a/install/radarr-install.sh +++ b/install/radarr-install.sh @@ -18,11 +18,13 @@ $STD apt-get install -y sqlite3 msg_ok "Installed Dependencies" msg_info "Installing Radarr" +temp_file="$(mktemp)" mkdir -p /var/lib/radarr/ chmod 775 /var/lib/radarr/ -cd /var/lib/radarr/ -$STD curl -fsSL 'https://radarr.servarr.com/v1/update/master/updatefile?os=linux&runtime=netcore&arch=x64' -o radarr.tar.gz -$STD tar -xvzf radarr.tar.gz +cd /var/lib/radarr/ || exit +RELEASE=$(curl -fsSL https://api.github.com/repos/Radarr/Radarr/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') +curl -fsSL "https://github.com/Radarr/Radarr/releases/download/v${RELEASE}/Radarr.master.${RELEASE}.linux-core-x64.tar.gz" -o "$temp_file" +$STD tar -xvzf "$temp_file" mv Radarr /opt chmod 775 /opt/Radarr msg_ok "Installed Radarr" @@ -42,15 +44,14 @@ Restart=on-failure [Install] WantedBy=multi-user.target EOF -systemctl -q daemon-reload -systemctl enable --now -q radarr +systemctl enable -q --now radarr msg_ok "Created Service" motd_ssh customize msg_info "Cleaning up" -rm -rf Radarr.master.*.tar.gz +rm -rf "$temp_file" $STD apt-get -y autoremove $STD apt-get -y autoclean msg_ok "Cleaned"