Skip to content

Commit 50c9a0e

Browse files
'Add new script' (#4093)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
1 parent 246c6e9 commit 50c9a0e

File tree

3 files changed

+215
-0
lines changed

3 files changed

+215
-0
lines changed

ct/umlautadaptarr.sh

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
#!/usr/bin/env bash
2+
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/refs/heads/main/misc/build.func)
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: elvito
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://github.com/PCJones/UmlautAdaptarr
7+
8+
APP="UmlautAdaptarr"
9+
var_tags="arr"
10+
var_cpu="1"
11+
var_ram="512"
12+
var_disk="4"
13+
var_os="debian"
14+
var_version="12"
15+
var_unprivileged="1"
16+
17+
header_info "$APP"
18+
variables
19+
color
20+
catch_errors
21+
22+
function update_script() {
23+
header_info
24+
check_container_storage
25+
check_container_resources
26+
if [[ ! -d /opt/UmlautAdaptarr ]]; then
27+
msg_error "No ${APP} Installation Found!"
28+
exit
29+
fi
30+
RELEASE=$(curl -fsSL https://api.github.com/repos/PCJones/Umlautadaptarr/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}')
31+
if [[ ! -f /opt/UmlautAdaptarr_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/UmlautAdaptarr_version.txt)" ]]; then
32+
msg_info "Stopping Service"
33+
systemctl stop umlautadaptarr
34+
msg_ok "Stopped Service"
35+
36+
msg_info "Updating ${APP}"
37+
temp_file=$(mktemp)
38+
curl -fsSL "https://github.com/PCJones/Umlautadaptarr/releases/download/${RELEASE}/linux-x64.zip" -o $temp_file
39+
$STD unzip -u $temp_file '*/**' -d /opt/UmlautAdaptarr
40+
msg_ok "Updated ${APP}"
41+
42+
msg_info "Starting Service"
43+
systemctl start umlautadaptarr
44+
msg_ok "Started Service"
45+
msg_ok "$APP has been updated to ${RELEASE}."
46+
else
47+
msg_ok "No update required. ${APP} is already at ${RELEASE}"
48+
fi
49+
exit
50+
}
51+
start
52+
build_container
53+
description
54+
55+
msg_ok "Completed Successfully!\n"
56+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
57+
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
58+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:5005${CL}"
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "UmlautAdaptarr",
3+
"slug": "umlautadaptarr",
4+
"categories": [
5+
14
6+
],
7+
"date_created": "2025-04-28",
8+
"type": "ct",
9+
"updateable": true,
10+
"privileged": false,
11+
"interface_port": 5005,
12+
"documentation": null,
13+
"website": "https://github.com/PCJones/UmlautAdaptarr",
14+
"logo": null,
15+
"config_path": "/opt/UmlautAdaptarr/appsettings.json",
16+
"description": "UmlautAdaptarr is a tool that fixes issues with how Sonarr, Radarr, Lidarr, and Readarr handle foreign languages. It sits between these apps and the indexers, changing searches and results, and renaming releases so the apps recognize them correctly.",
17+
"install_methods": [
18+
{
19+
"type": "default",
20+
"script": "ct/umlautadaptarr.sh",
21+
"resources": {
22+
"cpu": 1,
23+
"ram": 512,
24+
"hdd": 2,
25+
"os": "debian",
26+
"version": "12"
27+
}
28+
}
29+
],
30+
"default_credentials": {
31+
"username": null,
32+
"password": null
33+
},
34+
"notes": []
35+
}

install/umlautadaptarr-install.sh

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: elvito
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://github.com/PCJones/UmlautAdaptarr
7+
8+
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
9+
color
10+
verb_ip6
11+
catch_errors
12+
setting_up_container
13+
network_check
14+
update_os
15+
16+
msg_info "Installing Dependencies"
17+
$STD curl -fsSL https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -o packages-microsoft-prod.deb
18+
$STD dpkg -i packages-microsoft-prod.deb
19+
$STD apt-get update
20+
$STD apt-get install -y \
21+
dotnet-sdk-8.0 \
22+
aspnetcore-runtime-8.0
23+
msg_ok "Installed Dependencies"
24+
25+
msg_info "Installing Umlautadaptarr"
26+
temp_file=$(mktemp)
27+
RELEASE=$(curl -s https://api.github.com/repos/PCJones/Umlautadaptarr/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}')
28+
curl -fsSL "https://github.com/PCJones/Umlautadaptarr/releases/download/${RELEASE}/linux-x64.zip" -o $temp_file
29+
unzip -qj $temp_file '*/**' -d /opt/UmlautAdaptarr
30+
echo "${RELEASE}" >"/opt/UmlautAdaptarr_version.txt"
31+
msg_ok "Installation completed"
32+
33+
msg_info "Creating appsettings.json"
34+
cat <<EOF >/opt/UmlautAdaptarr/appsettings.json
35+
{
36+
"Logging": {
37+
"LogLevel": {
38+
"Default": "Information",
39+
"Microsoft.AspNetCore": "Warning"
40+
},
41+
"Console": {
42+
"TimestampFormat": "yyyy-MM-dd HH:mm:ss::"
43+
}
44+
},
45+
"AllowedHosts": "*",
46+
"Kestrel": {
47+
"Endpoints": {
48+
"Http": {
49+
"Url": "http://[::]:5005"
50+
}
51+
}
52+
},
53+
"Settings": {
54+
"UserAgent": "UmlautAdaptarr/1.0",
55+
"UmlautAdaptarrApiHost": "https://umlautadaptarr.pcjones.de/api/v1",
56+
"IndexerRequestsCacheDurationInMinutes": 12
57+
},
58+
"Sonarr": [
59+
{
60+
"Enabled": false,
61+
"Name": "Sonarr",
62+
"Host": "http://192.168.1.100:8989",
63+
"ApiKey": "dein_sonarr_api_key"
64+
}
65+
],
66+
"Radarr": [
67+
{
68+
"Enabled": false,
69+
"Name": "Radarr",
70+
"Host": "http://192.168.1.101:7878",
71+
"ApiKey": "dein_radarr_api_key"
72+
}
73+
],
74+
"Lidarr": [
75+
{
76+
"Enabled": false,
77+
"Host": "http://192.168.1.102:8686",
78+
"ApiKey": "dein_lidarr_api_key"
79+
},
80+
],
81+
"Readarr": [
82+
{
83+
"Enabled": false,
84+
"Host": "http://192.168.1.103:8787",
85+
"ApiKey": "dein_readarr_api_key"
86+
},
87+
],
88+
"IpLeakTest": {
89+
"Enabled": false
90+
}
91+
}
92+
EOF
93+
msg_ok "appsettings.json created"
94+
95+
msg_info "Creating Service"
96+
cat <<EOF >/etc/systemd/system/umlautadaptarr.service
97+
[Unit]
98+
Description=UmlautAdaptarr Service
99+
After=network.target
100+
101+
[Service]
102+
WorkingDirectory=/opt/UmlautAdaptarr
103+
ExecStart=/usr/bin/dotnet /opt/UmlautAdaptarr/bin/Release/net8.0/UmlautAdaptarr.dll --urls=http://0.0.0.0:5005
104+
Restart=always
105+
User=root
106+
Group=root
107+
Environment=ASPNETCORE_ENVIRONMENT=Production
108+
109+
[Install]
110+
WantedBy=multi-user.target
111+
EOF
112+
systemctl -q --now enable umlautadaptarr
113+
msg_ok "Created Service"
114+
115+
motd_ssh
116+
customize
117+
118+
msg_info "Cleaning up"
119+
rm -f $temp_file
120+
$STD apt-get -y autoremove
121+
$STD apt-get -y autoclean
122+
msg_ok "Cleaned"

0 commit comments

Comments
 (0)