Update umlautadaptarr-install.sh

changed installing process
This commit is contained in:
elvito 2025-04-16 16:36:43 +02:00 committed by GitHub
parent f31b58a6e9
commit 482fec9e95
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,11 +25,12 @@ $STD apt-get install -y \
aspnetcore-runtime-8.0 aspnetcore-runtime-8.0
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Building & Installing Umlautadaptarr" msg_info "Installing Umlautadaptarr"
$STD git clone https://github.com/PCJones/UmlautAdaptarr.git /opt/ temp_file=$(mktemp)
cd /opt/UmlautAdaptarr trap 'rm -f "$temp_file"' EXIT
$STD dotnet restore RELEASE=$(curl -s https://api.github.com/repos/PCJones/Umlautadaptarr/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}')
$STD dotnet build --configuration Release 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_ok "Installation completed"
msg_info "Creating appsettings.json" msg_info "Creating appsettings.json"
@ -112,7 +113,7 @@ Environment=ASPNETCORE_ENVIRONMENT=Production
WantedBy=multi-user.target WantedBy=multi-user.target
EOF EOF
$STD systemctl daemon-reload $STD systemctl daemon-reload
systemctl -q --now umlautadaptarr systemctl -q --now enable umlautadaptarr
msg_ok "Created systemd Service" msg_ok "Created systemd Service"
motd_ssh motd_ssh