From 3aa1fd0e9834f09bd8fc50be3633ca0ec715d9f3 Mon Sep 17 00:00:00 2001 From: elvito Date: Thu, 10 Apr 2025 19:03:24 +0200 Subject: [PATCH 01/30] Create umlautadaptarr.json --- frontend/public/json/umlautadaptarr.json | 34 ++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 frontend/public/json/umlautadaptarr.json diff --git a/frontend/public/json/umlautadaptarr.json b/frontend/public/json/umlautadaptarr.json new file mode 100644 index 0000000..a96d2f0 --- /dev/null +++ b/frontend/public/json/umlautadaptarr.json @@ -0,0 +1,34 @@ +{ + "name": "UmlautAdaptarr", + "slug": "umlautadaptarr", + "categories": [ + 0 + ], + "date_created": "2025-04-08", + "type": "ct", + "updateable": true, + "privileged": false, + "interface_port": 5005, + "documentation": null, + "website": "https://github.com/PCJones/UmlautAdaptarr", + "logo": "LINK TO LOGO", + "description": "A tool to work around Sonarr, Radarr, Lidarr and Readarrs problems with foreign languages", + "install_methods": [ + { + "type": "default", + "script": "ct/umlautadaptarr.sh", + "resources": { + "cpu": 1, + "ram": 512, + "hdd": 2, + "os": "debian", + "version": "12" + } + } + ], + "default_credentials": { + "username": "root", + "password": null + }, + "notes": [] +} From 89dc5f6d0b34ed052b6b8a56e36a57209f4c8c6c Mon Sep 17 00:00:00 2001 From: elvito Date: Thu, 10 Apr 2025 19:04:44 +0200 Subject: [PATCH 02/30] Create umlautadaptarr --- ct/headers/umlautadaptarr | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 ct/headers/umlautadaptarr diff --git a/ct/headers/umlautadaptarr b/ct/headers/umlautadaptarr new file mode 100644 index 0000000..e382cef --- /dev/null +++ b/ct/headers/umlautadaptarr @@ -0,0 +1,5 @@ + _ _ _ _ _ _ _ + | | | |_ __ | |__ _ _ _| |_ /_\ __| |__ _ _ __| |_ __ _ _ _ _ _ + | |_| | ' \| / _` | || | _|/ _ \/ _` / _` | '_ \ _/ _` | '_| '_| + \___/|_|_|_|_\__,_|\_,_|\__/_/ \_\__,_\__,_| .__/\__\__,_|_| |_| + |_| From aa1451ff26e92fa44934ec18b528eca5e7161ed5 Mon Sep 17 00:00:00 2001 From: elvito Date: Thu, 10 Apr 2025 19:10:03 +0200 Subject: [PATCH 03/30] Create umlautadaptarr.sh --- ct/umlautadaptarr.sh | 49 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 ct/umlautadaptarr.sh diff --git a/ct/umlautadaptarr.sh b/ct/umlautadaptarr.sh new file mode 100644 index 0000000..5b672fd --- /dev/null +++ b/ct/umlautadaptarr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/env bash +source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func) +# Copyright (c) 2021-2025 community-scripts ORG +# Author: elvito +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://github.com/PCJones/UmlautAdaptarr + +APP="Umlautadaptarr" +var_tags="arr" +var_cpu="1" +var_ram="512" +var_disk="4" +var_os="debian" +var_version="12" +var_unprivileged="1" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + + # Check if installation is present | -f for file, -d for folder + if [[ ! -f /opt/UmlautAdaptarr/appsettings.json ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + msg_info "Updating $APP..." + $STD cd /opt/UmlautAdaptarr || exit + $STD git pull origin master + $STD dotnet restore + $STD dotnet build --configuration Release + $STD systemctl restart umlautadaptarr + msg_ok "$APP has been updated." + exit +} + +start +build_container +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}:[PORT]${CL}" From ffd311356e2d77e3e0b1aa7395c3f206e42fb04b Mon Sep 17 00:00:00 2001 From: elvito Date: Thu, 10 Apr 2025 19:13:18 +0200 Subject: [PATCH 04/30] Update umlautadaptarr.sh --- ct/umlautadaptarr.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/umlautadaptarr.sh b/ct/umlautadaptarr.sh index 5b672fd..960eb92 100644 --- a/ct/umlautadaptarr.sh +++ b/ct/umlautadaptarr.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func) +source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/refs/heads/main/misc/build.func) # Copyright (c) 2021-2025 community-scripts ORG # Author: elvito # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE From 93525897a4b9f161bcb4c4dff201133b4bfe21e4 Mon Sep 17 00:00:00 2001 From: elvito Date: Thu, 10 Apr 2025 19:17:00 +0200 Subject: [PATCH 05/30] Create umlautadaptarr-install.sh --- install/umlautadaptarr-install.sh | 133 ++++++++++++++++++++++++++++++ 1 file changed, 133 insertions(+) create mode 100644 install/umlautadaptarr-install.sh diff --git a/install/umlautadaptarr-install.sh b/install/umlautadaptarr-install.sh new file mode 100644 index 0000000..6884d97 --- /dev/null +++ b/install/umlautadaptarr-install.sh @@ -0,0 +1,133 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2025 community-scripts ORG +# Author: elvito +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://github.com/PCJones/UmlautAdaptarr + +# Import Functions und Setup +source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +# Installing Dependencies +msg_info "Installing Dependencies" +$STD apt update +$STD apt upgrade -y +$STD wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb +$STD dpkg -i packages-microsoft-prod.deb +$STD apt-get update +$STD apt-get install -y \ + curl \ + unzip \ + git \ + dotnet-sdk-8.0 \ + aspnetcore-runtime-8.0 + msg_ok "Installed Dependencies" + +# Building & Installing UA +msg_info "Building & Installing Umlautadaptarr" +$STD git clone https://github.com/PCJones/UmlautAdaptarr.git /opt/ +$STD cd /opt/UmlautAdaptarr +$STD dotnet restore +$STD dotnet build --configuration Release +msg_ok "Installation completed" +# Configure appsettings.json +msg_info "Creating appsettings.json" +cat </opt/UmlautAdaptarr/appsettings.json +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + }, + "Console": { + "TimestampFormat": "yyyy-MM-dd HH:mm:ss::" + } + }, + "AllowedHosts": "*", + "Kestrel": { + "Endpoints": { + "Http": { + "Url": "http://[::]:5005" + } + } + }, + "Settings": { + "UserAgent": "UmlautAdaptarr/1.0", + "UmlautAdaptarrApiHost": "https://umlautadaptarr.pcjones.de/api/v1", + "IndexerRequestsCacheDurationInMinutes": 12 + }, + "Sonarr": [ + { + "Enabled": false, + "Name": "Sonarr", + "Host": "http://192.168.1.100:8989", + "ApiKey": "dein_sonarr_api_key" + } + ], + "Radarr": [ + { + "Enabled": false, + "Name": "Radarr", + "Host": "http://192.168.1.101:7878", + "ApiKey": "dein_radarr_api_key" + } + ], + "Lidarr": [ + { + "Enabled": false, + "Host": "http://192.168.1.102:8686", + "ApiKey": "dein_lidarr_api_key" + }, + ], + "Readarr": [ + { + "Enabled": false, + "Host": "http://192.168.1.103:8787", + "ApiKey": "dein_readarr_api_key" + }, + ], + "IpLeakTest": { + "Enabled": false + } +} +EOF +msg_ok "appsettings.json created" + +# Set up systemd service for UmlautAdaptarr +msg_info "Creating systemd Service" +cat </etc/systemd/system/umlautadaptarr.service +[Unit] +Description=UmlautAdaptarr Service +After=network.target + +[Service] +Type=Core +WorkingDirectory=/opt/UmlautAdaptarr +ExecStart=/usr/bin/dotnet /opt/UmlautAdaptarr/bin/Release/net8.0/UmlautAdaptarr.dll --urls=http://0.0.0.0:5005 +Restart=always +User=root +Group=root +Environment=ASPNETCORE_ENVIRONMENT=Production + +[Install] +WantedBy=multi-user.target +EOF +$STD systemctl daemon-reload +$STD systemctl enable umlautadaptarr.service +$STD systemctl start umlautadaptarr +msg_ok "Created systemd Service" + +motd_ssh +customize + +# Cleanup +msg_info "Cleaning up" +$STD apt-get -y autoremove +$STD apt-get -y autoclean +msg_ok "Cleaned" From f9f540fc37e36a79d06f4e0c49f0c96b5ab5f3f5 Mon Sep 17 00:00:00 2001 From: elvito Date: Mon, 14 Apr 2025 23:31:34 +0200 Subject: [PATCH 06/30] Update ct/umlautadaptarr.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Slaviša Arežina <58952836+tremor021@users.noreply.github.com> --- ct/umlautadaptarr.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/umlautadaptarr.sh b/ct/umlautadaptarr.sh index 960eb92..be8c566 100644 --- a/ct/umlautadaptarr.sh +++ b/ct/umlautadaptarr.sh @@ -30,7 +30,7 @@ function update_script() { exit fi msg_info "Updating $APP..." - $STD cd /opt/UmlautAdaptarr || exit + cd /opt/UmlautAdaptarr || exit $STD git pull origin master $STD dotnet restore $STD dotnet build --configuration Release From b63c48316e2482d65ee0d607360fa12de1419339 Mon Sep 17 00:00:00 2001 From: elvito Date: Mon, 14 Apr 2025 23:32:11 +0200 Subject: [PATCH 07/30] Update ct/umlautadaptarr.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Slaviša Arežina <58952836+tremor021@users.noreply.github.com> --- ct/umlautadaptarr.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/umlautadaptarr.sh b/ct/umlautadaptarr.sh index be8c566..8eb798d 100644 --- a/ct/umlautadaptarr.sh +++ b/ct/umlautadaptarr.sh @@ -46,4 +46,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}:[PORT]${CL}" +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:5005${CL}" From 345624ca5a4291b84797b26209211a0a9b9eb683 Mon Sep 17 00:00:00 2001 From: elvito Date: Mon, 14 Apr 2025 23:32:20 +0200 Subject: [PATCH 08/30] Update frontend/public/json/umlautadaptarr.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Slaviša Arežina <58952836+tremor021@users.noreply.github.com> --- frontend/public/json/umlautadaptarr.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/public/json/umlautadaptarr.json b/frontend/public/json/umlautadaptarr.json index a96d2f0..b0797ca 100644 --- a/frontend/public/json/umlautadaptarr.json +++ b/frontend/public/json/umlautadaptarr.json @@ -11,7 +11,7 @@ "interface_port": 5005, "documentation": null, "website": "https://github.com/PCJones/UmlautAdaptarr", - "logo": "LINK TO LOGO", + "logo": null, "description": "A tool to work around Sonarr, Radarr, Lidarr and Readarrs problems with foreign languages", "install_methods": [ { From 7d6cac3dee4205041aae7e70227d56c21ee895de Mon Sep 17 00:00:00 2001 From: elvito Date: Mon, 14 Apr 2025 23:37:49 +0200 Subject: [PATCH 09/30] Update umlautadaptarr.sh comment removed --- ct/umlautadaptarr.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ct/umlautadaptarr.sh b/ct/umlautadaptarr.sh index 8eb798d..940d63a 100644 --- a/ct/umlautadaptarr.sh +++ b/ct/umlautadaptarr.sh @@ -24,7 +24,6 @@ function update_script() { check_container_storage check_container_resources - # Check if installation is present | -f for file, -d for folder if [[ ! -f /opt/UmlautAdaptarr/appsettings.json ]]; then msg_error "No ${APP} Installation Found!" exit From cdad6b8d731e040d69e6423b5961f9b0c27562b8 Mon Sep 17 00:00:00 2001 From: elvito Date: Mon, 14 Apr 2025 23:38:44 +0200 Subject: [PATCH 10/30] Update install/umlautadaptarr-install.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Slaviša Arežina <58952836+tremor021@users.noreply.github.com> --- install/umlautadaptarr-install.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/install/umlautadaptarr-install.sh b/install/umlautadaptarr-install.sh index 6884d97..f689e80 100644 --- a/install/umlautadaptarr-install.sh +++ b/install/umlautadaptarr-install.sh @@ -16,8 +16,6 @@ update_os # Installing Dependencies msg_info "Installing Dependencies" -$STD apt update -$STD apt upgrade -y $STD wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb $STD dpkg -i packages-microsoft-prod.deb $STD apt-get update From 4c40a325c745001d4614d895720af873454097d6 Mon Sep 17 00:00:00 2001 From: elvito Date: Mon, 14 Apr 2025 23:39:03 +0200 Subject: [PATCH 11/30] Update install/umlautadaptarr-install.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Slaviša Arežina <58952836+tremor021@users.noreply.github.com> --- install/umlautadaptarr-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/umlautadaptarr-install.sh b/install/umlautadaptarr-install.sh index f689e80..7bcc6ff 100644 --- a/install/umlautadaptarr-install.sh +++ b/install/umlautadaptarr-install.sh @@ -30,7 +30,7 @@ $STD apt-get install -y \ # Building & Installing UA msg_info "Building & Installing Umlautadaptarr" $STD git clone https://github.com/PCJones/UmlautAdaptarr.git /opt/ -$STD cd /opt/UmlautAdaptarr +cd /opt/UmlautAdaptarr $STD dotnet restore $STD dotnet build --configuration Release msg_ok "Installation completed" From 6c1695f4bc651592f1bc5405cbf9eeb197b23731 Mon Sep 17 00:00:00 2001 From: elvito Date: Mon, 14 Apr 2025 23:41:27 +0200 Subject: [PATCH 12/30] Update umlautadaptarr-install.sh --- install/umlautadaptarr-install.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/install/umlautadaptarr-install.sh b/install/umlautadaptarr-install.sh index 7bcc6ff..47903a5 100644 --- a/install/umlautadaptarr-install.sh +++ b/install/umlautadaptarr-install.sh @@ -5,7 +5,6 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/PCJones/UmlautAdaptarr -# Import Functions und Setup source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" color verb_ip6 @@ -14,7 +13,6 @@ setting_up_container network_check update_os -# Installing Dependencies msg_info "Installing Dependencies" $STD wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb $STD dpkg -i packages-microsoft-prod.deb From 7556d23409e2ee93cdb8bd9d7b58741696ba6765 Mon Sep 17 00:00:00 2001 From: elvito Date: Mon, 14 Apr 2025 23:44:26 +0200 Subject: [PATCH 13/30] Update umlautadaptarr-install.sh comment removed --- install/umlautadaptarr-install.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/install/umlautadaptarr-install.sh b/install/umlautadaptarr-install.sh index 47903a5..f839243 100644 --- a/install/umlautadaptarr-install.sh +++ b/install/umlautadaptarr-install.sh @@ -25,7 +25,6 @@ $STD apt-get install -y \ aspnetcore-runtime-8.0 msg_ok "Installed Dependencies" -# Building & Installing UA msg_info "Building & Installing Umlautadaptarr" $STD git clone https://github.com/PCJones/UmlautAdaptarr.git /opt/ cd /opt/UmlautAdaptarr From 055b04b48aaa5089c264370b40112add61261bdc Mon Sep 17 00:00:00 2001 From: elvito Date: Mon, 14 Apr 2025 23:45:27 +0200 Subject: [PATCH 14/30] Update install/umlautadaptarr-install.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Slaviša Arežina <58952836+tremor021@users.noreply.github.com> --- install/umlautadaptarr-install.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/install/umlautadaptarr-install.sh b/install/umlautadaptarr-install.sh index f839243..98740f1 100644 --- a/install/umlautadaptarr-install.sh +++ b/install/umlautadaptarr-install.sh @@ -114,8 +114,7 @@ Environment=ASPNETCORE_ENVIRONMENT=Production WantedBy=multi-user.target EOF $STD systemctl daemon-reload -$STD systemctl enable umlautadaptarr.service -$STD systemctl start umlautadaptarr +systemctl -q --now umlautadaptarr msg_ok "Created systemd Service" motd_ssh From f9b5bee8041bd04a67922c794ca4c432fecd566e Mon Sep 17 00:00:00 2001 From: elvito Date: Mon, 14 Apr 2025 23:48:26 +0200 Subject: [PATCH 15/30] Update umlautadaptarr-install.sh --- install/umlautadaptarr-install.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/install/umlautadaptarr-install.sh b/install/umlautadaptarr-install.sh index 98740f1..b6a51d6 100644 --- a/install/umlautadaptarr-install.sh +++ b/install/umlautadaptarr-install.sh @@ -31,7 +31,7 @@ cd /opt/UmlautAdaptarr $STD dotnet restore $STD dotnet build --configuration Release msg_ok "Installation completed" -# Configure appsettings.json + msg_info "Creating appsettings.json" cat </opt/UmlautAdaptarr/appsettings.json { @@ -94,7 +94,6 @@ cat </opt/UmlautAdaptarr/appsettings.json EOF msg_ok "appsettings.json created" -# Set up systemd service for UmlautAdaptarr msg_info "Creating systemd Service" cat </etc/systemd/system/umlautadaptarr.service [Unit] @@ -120,7 +119,6 @@ msg_ok "Created systemd Service" motd_ssh customize -# Cleanup msg_info "Cleaning up" $STD apt-get -y autoremove $STD apt-get -y autoclean From 64c4834702f349044be1da6b09ecd7bf0d729caf Mon Sep 17 00:00:00 2001 From: elvito Date: Tue, 15 Apr 2025 18:10:14 +0200 Subject: [PATCH 16/30] Update install/umlautadaptarr-install.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Slaviša Arežina <58952836+tremor021@users.noreply.github.com> --- install/umlautadaptarr-install.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/install/umlautadaptarr-install.sh b/install/umlautadaptarr-install.sh index b6a51d6..876277a 100644 --- a/install/umlautadaptarr-install.sh +++ b/install/umlautadaptarr-install.sh @@ -20,7 +20,6 @@ $STD apt-get update $STD apt-get install -y \ curl \ unzip \ - git \ dotnet-sdk-8.0 \ aspnetcore-runtime-8.0 msg_ok "Installed Dependencies" From 240331d118a04d82b0149c4d07f7fb9490b34550 Mon Sep 17 00:00:00 2001 From: elvito Date: Tue, 15 Apr 2025 18:15:08 +0200 Subject: [PATCH 17/30] Update umlautadaptarr-install.sh curl must be available before MS packages are added --- install/umlautadaptarr-install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install/umlautadaptarr-install.sh b/install/umlautadaptarr-install.sh index 876277a..82c2a15 100644 --- a/install/umlautadaptarr-install.sh +++ b/install/umlautadaptarr-install.sh @@ -14,11 +14,12 @@ network_check update_os msg_info "Installing Dependencies" -$STD wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb +$STD apt-get update +$STD apt-get install -y curl +$STD curl -fsSL https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -o packages-microsoft-prod.deb $STD dpkg -i packages-microsoft-prod.deb $STD apt-get update $STD apt-get install -y \ - curl \ unzip \ dotnet-sdk-8.0 \ aspnetcore-runtime-8.0 From 4d0316f00fb09495e29d69922dc8a027c477cb36 Mon Sep 17 00:00:00 2001 From: elvito Date: Wed, 16 Apr 2025 15:49:35 +0200 Subject: [PATCH 18/30] Update umlautadaptarr-install.sh --- install/umlautadaptarr-install.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/install/umlautadaptarr-install.sh b/install/umlautadaptarr-install.sh index 82c2a15..c2684fe 100644 --- a/install/umlautadaptarr-install.sh +++ b/install/umlautadaptarr-install.sh @@ -101,7 +101,6 @@ Description=UmlautAdaptarr Service After=network.target [Service] -Type=Core WorkingDirectory=/opt/UmlautAdaptarr ExecStart=/usr/bin/dotnet /opt/UmlautAdaptarr/bin/Release/net8.0/UmlautAdaptarr.dll --urls=http://0.0.0.0:5005 Restart=always From 482fec9e95bdf213b2419935145c2a60b43d4b8f Mon Sep 17 00:00:00 2001 From: elvito Date: Wed, 16 Apr 2025 16:36:43 +0200 Subject: [PATCH 19/30] Update umlautadaptarr-install.sh changed installing process --- install/umlautadaptarr-install.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/install/umlautadaptarr-install.sh b/install/umlautadaptarr-install.sh index c2684fe..3f766c1 100644 --- a/install/umlautadaptarr-install.sh +++ b/install/umlautadaptarr-install.sh @@ -25,11 +25,12 @@ $STD apt-get install -y \ aspnetcore-runtime-8.0 msg_ok "Installed Dependencies" -msg_info "Building & Installing Umlautadaptarr" -$STD git clone https://github.com/PCJones/UmlautAdaptarr.git /opt/ -cd /opt/UmlautAdaptarr -$STD dotnet restore -$STD dotnet build --configuration Release +msg_info "Installing Umlautadaptarr" +temp_file=$(mktemp) +trap 'rm -f "$temp_file"' EXIT +RELEASE=$(curl -s https://api.github.com/repos/PCJones/Umlautadaptarr/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}') +curl -fsSL "https://github.com/PCJones/Umlautadaptarr/releases/download/${RELEASE}/linux-x64.zip" -o $temp_file +$STD unzip -j $temp_file '*/**' -d /opt/UmlautAdaptarr msg_ok "Installation completed" msg_info "Creating appsettings.json" @@ -112,7 +113,7 @@ Environment=ASPNETCORE_ENVIRONMENT=Production WantedBy=multi-user.target EOF $STD systemctl daemon-reload -systemctl -q --now umlautadaptarr +systemctl -q --now enable umlautadaptarr msg_ok "Created systemd Service" motd_ssh From bbdc62bbd4a37d9ac2ea700147956f17d67b0cbd Mon Sep 17 00:00:00 2001 From: elvito Date: Wed, 16 Apr 2025 16:39:14 +0200 Subject: [PATCH 20/30] Update umlautadaptarr.sh --- ct/umlautadaptarr.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/ct/umlautadaptarr.sh b/ct/umlautadaptarr.sh index 940d63a..b9c5cbf 100644 --- a/ct/umlautadaptarr.sh +++ b/ct/umlautadaptarr.sh @@ -29,11 +29,13 @@ function update_script() { exit fi msg_info "Updating $APP..." - cd /opt/UmlautAdaptarr || exit - $STD git pull origin master - $STD dotnet restore - $STD dotnet build --configuration Release - $STD systemctl restart umlautadaptarr + $STD systemctl stop umlautadaptarr + temp_file=$(mktemp) + trap 'rm -f "$temp_file"' EXIT + RELEASE=$(curl -s https://api.github.com/repos/PCJones/Umlautadaptarr/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}') + curl -fsSL "https://github.com/PCJones/Umlautadaptarr/releases/download/${RELEASE}/linux-x64.zip" -o $temp_file + $STD unzip -u $temp_file '*/**' -d /opt/UmlautAdaptarr + $STD systemctl start umlautadaptarr msg_ok "$APP has been updated." exit } From 71bfbde6e1a71e613bc8cf4cbff44e01b9bd7902 Mon Sep 17 00:00:00 2001 From: elvito Date: Wed, 16 Apr 2025 19:59:29 +0200 Subject: [PATCH 21/30] Delete ct/headers/umlautadaptarr --- ct/headers/umlautadaptarr | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 ct/headers/umlautadaptarr diff --git a/ct/headers/umlautadaptarr b/ct/headers/umlautadaptarr deleted file mode 100644 index e382cef..0000000 --- a/ct/headers/umlautadaptarr +++ /dev/null @@ -1,5 +0,0 @@ - _ _ _ _ _ _ _ - | | | |_ __ | |__ _ _ _| |_ /_\ __| |__ _ _ __| |_ __ _ _ _ _ _ - | |_| | ' \| / _` | || | _|/ _ \/ _` / _` | '_ \ _/ _` | '_| '_| - \___/|_|_|_|_\__,_|\_,_|\__/_/ \_\__,_\__,_| .__/\__\__,_|_| |_| - |_| From 1d5bba3a24ccb480187fc53c1b7bc3a94e9a5964 Mon Sep 17 00:00:00 2001 From: elvito Date: Wed, 16 Apr 2025 20:04:33 +0200 Subject: [PATCH 22/30] Update umlautadaptarr-install.sh --- install/umlautadaptarr-install.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/install/umlautadaptarr-install.sh b/install/umlautadaptarr-install.sh index 3f766c1..3e93b96 100644 --- a/install/umlautadaptarr-install.sh +++ b/install/umlautadaptarr-install.sh @@ -14,13 +14,10 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get update -$STD apt-get install -y curl $STD curl -fsSL https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -o packages-microsoft-prod.deb $STD dpkg -i packages-microsoft-prod.deb $STD apt-get update $STD apt-get install -y \ - unzip \ dotnet-sdk-8.0 \ aspnetcore-runtime-8.0 msg_ok "Installed Dependencies" @@ -30,7 +27,7 @@ temp_file=$(mktemp) trap 'rm -f "$temp_file"' EXIT RELEASE=$(curl -s https://api.github.com/repos/PCJones/Umlautadaptarr/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}') curl -fsSL "https://github.com/PCJones/Umlautadaptarr/releases/download/${RELEASE}/linux-x64.zip" -o $temp_file -$STD unzip -j $temp_file '*/**' -d /opt/UmlautAdaptarr +unzip -qj $temp_file '*/**' -d /opt/UmlautAdaptarr msg_ok "Installation completed" msg_info "Creating appsettings.json" @@ -112,7 +109,6 @@ Environment=ASPNETCORE_ENVIRONMENT=Production [Install] WantedBy=multi-user.target EOF -$STD systemctl daemon-reload systemctl -q --now enable umlautadaptarr msg_ok "Created systemd Service" From ef93c7aaaade6f8a32715f3b4500fae4d82c62b4 Mon Sep 17 00:00:00 2001 From: elvito Date: Wed, 16 Apr 2025 20:14:52 +0200 Subject: [PATCH 23/30] Update umlautadaptarr.sh --- ct/umlautadaptarr.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/umlautadaptarr.sh b/ct/umlautadaptarr.sh index b9c5cbf..dada776 100644 --- a/ct/umlautadaptarr.sh +++ b/ct/umlautadaptarr.sh @@ -35,7 +35,7 @@ function update_script() { RELEASE=$(curl -s https://api.github.com/repos/PCJones/Umlautadaptarr/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}') curl -fsSL "https://github.com/PCJones/Umlautadaptarr/releases/download/${RELEASE}/linux-x64.zip" -o $temp_file $STD unzip -u $temp_file '*/**' -d /opt/UmlautAdaptarr - $STD systemctl start umlautadaptarr + systemctl start umlautadaptarr msg_ok "$APP has been updated." exit } From d42258b57eb2796969ec90c8464a960ea4496a1a Mon Sep 17 00:00:00 2001 From: elvito Date: Wed, 16 Apr 2025 20:15:18 +0200 Subject: [PATCH 24/30] Update umlautadaptarr.sh --- ct/umlautadaptarr.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/umlautadaptarr.sh b/ct/umlautadaptarr.sh index dada776..e23bba9 100644 --- a/ct/umlautadaptarr.sh +++ b/ct/umlautadaptarr.sh @@ -29,7 +29,7 @@ function update_script() { exit fi msg_info "Updating $APP..." - $STD systemctl stop umlautadaptarr + systemctl stop umlautadaptarr temp_file=$(mktemp) trap 'rm -f "$temp_file"' EXIT RELEASE=$(curl -s https://api.github.com/repos/PCJones/Umlautadaptarr/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}') From 49502595d344a036dc4d08162e554fbc9742ffe3 Mon Sep 17 00:00:00 2001 From: elvito Date: Wed, 16 Apr 2025 20:17:08 +0200 Subject: [PATCH 25/30] Update umlautadaptarr.sh --- ct/umlautadaptarr.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ct/umlautadaptarr.sh b/ct/umlautadaptarr.sh index e23bba9..4fc9548 100644 --- a/ct/umlautadaptarr.sh +++ b/ct/umlautadaptarr.sh @@ -31,8 +31,7 @@ function update_script() { msg_info "Updating $APP..." systemctl stop umlautadaptarr temp_file=$(mktemp) - trap 'rm -f "$temp_file"' EXIT - RELEASE=$(curl -s https://api.github.com/repos/PCJones/Umlautadaptarr/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}') + RELEASE=$(curl -fsSL https://api.github.com/repos/PCJones/Umlautadaptarr/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}') curl -fsSL "https://github.com/PCJones/Umlautadaptarr/releases/download/${RELEASE}/linux-x64.zip" -o $temp_file $STD unzip -u $temp_file '*/**' -d /opt/UmlautAdaptarr systemctl start umlautadaptarr From 9d059cd0ecca13c344c7b9fdf510f2a1526f9cf4 Mon Sep 17 00:00:00 2001 From: elvito Date: Wed, 16 Apr 2025 20:21:17 +0200 Subject: [PATCH 26/30] Update umlautadaptarr-install.sh --- install/umlautadaptarr-install.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/install/umlautadaptarr-install.sh b/install/umlautadaptarr-install.sh index 3e93b96..8b3f3dc 100644 --- a/install/umlautadaptarr-install.sh +++ b/install/umlautadaptarr-install.sh @@ -24,7 +24,6 @@ $STD apt-get install -y \ msg_info "Installing Umlautadaptarr" temp_file=$(mktemp) -trap 'rm -f "$temp_file"' EXIT RELEASE=$(curl -s https://api.github.com/repos/PCJones/Umlautadaptarr/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}') curl -fsSL "https://github.com/PCJones/Umlautadaptarr/releases/download/${RELEASE}/linux-x64.zip" -o $temp_file unzip -qj $temp_file '*/**' -d /opt/UmlautAdaptarr From 0e833a718bf82d7d67e0f0a97299334936282466 Mon Sep 17 00:00:00 2001 From: elvito Date: Wed, 16 Apr 2025 20:50:50 +0200 Subject: [PATCH 27/30] Update umlautadaptarr-install.sh --- install/umlautadaptarr-install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install/umlautadaptarr-install.sh b/install/umlautadaptarr-install.sh index 8b3f3dc..bd8c2a3 100644 --- a/install/umlautadaptarr-install.sh +++ b/install/umlautadaptarr-install.sh @@ -115,6 +115,7 @@ motd_ssh customize msg_info "Cleaning up" +rm -f $temp_file $STD apt-get -y autoremove $STD apt-get -y autoclean msg_ok "Cleaned" From f7a468ef6baad800ff9efede8843ac6350a5d8ae Mon Sep 17 00:00:00 2001 From: elvito Date: Wed, 16 Apr 2025 21:04:43 +0200 Subject: [PATCH 28/30] Update umlautadaptarr.sh --- ct/umlautadaptarr.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/ct/umlautadaptarr.sh b/ct/umlautadaptarr.sh index 4fc9548..7f2f07b 100644 --- a/ct/umlautadaptarr.sh +++ b/ct/umlautadaptarr.sh @@ -5,7 +5,7 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/PCJones/UmlautAdaptarr -APP="Umlautadaptarr" +APP="UmlautAdaptarr" var_tags="arr" var_cpu="1" var_ram="512" @@ -28,17 +28,20 @@ function update_script() { msg_error "No ${APP} Installation Found!" exit fi + RELEASE=$(curl -fsSL https://api.github.com/repos/PCJones/Umlautadaptarr/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}') + if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then msg_info "Updating $APP..." systemctl stop umlautadaptarr temp_file=$(mktemp) - RELEASE=$(curl -fsSL https://api.github.com/repos/PCJones/Umlautadaptarr/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}') curl -fsSL "https://github.com/PCJones/Umlautadaptarr/releases/download/${RELEASE}/linux-x64.zip" -o $temp_file $STD unzip -u $temp_file '*/**' -d /opt/UmlautAdaptarr systemctl start umlautadaptarr msg_ok "$APP has been updated." - exit + else + msg_ok "No update required. ${APP} is already at ${RELEASE}" + fi + exit } - start build_container description From 5428fce76889d1f7ffd9e444012c0a421c2400ec Mon Sep 17 00:00:00 2001 From: elvito Date: Wed, 16 Apr 2025 21:12:27 +0200 Subject: [PATCH 29/30] Update umlautadaptarr-install.sh --- install/umlautadaptarr-install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install/umlautadaptarr-install.sh b/install/umlautadaptarr-install.sh index bd8c2a3..c43acbf 100644 --- a/install/umlautadaptarr-install.sh +++ b/install/umlautadaptarr-install.sh @@ -27,6 +27,7 @@ temp_file=$(mktemp) RELEASE=$(curl -s https://api.github.com/repos/PCJones/Umlautadaptarr/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}') curl -fsSL "https://github.com/PCJones/Umlautadaptarr/releases/download/${RELEASE}/linux-x64.zip" -o $temp_file unzip -qj $temp_file '*/**' -d /opt/UmlautAdaptarr +echo "${RELEASE}" >"/opt/UmlautAdaptarr_version.txt" msg_ok "Installation completed" msg_info "Creating appsettings.json" From ffaecb56e4fe34fdadc9144644e297f02ab5a139 Mon Sep 17 00:00:00 2001 From: elvito Date: Wed, 16 Apr 2025 22:06:28 +0200 Subject: [PATCH 30/30] Update umlautadaptarr.json --- frontend/public/json/umlautadaptarr.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/public/json/umlautadaptarr.json b/frontend/public/json/umlautadaptarr.json index b0797ca..0b8c927 100644 --- a/frontend/public/json/umlautadaptarr.json +++ b/frontend/public/json/umlautadaptarr.json @@ -2,7 +2,7 @@ "name": "UmlautAdaptarr", "slug": "umlautadaptarr", "categories": [ - 0 + 14 ], "date_created": "2025-04-08", "type": "ct",