mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-28 04:45:06 +02:00
fix(technitiumdns): always install .NET 10 if not already present (#14049)
Previously the update script only upgraded .NET when aspnetcore-runtime-8.0 or 9.0 was detected via is_package_installed. Containers where detection failed would silently skip the upgrade block, leaving Technitium v15 (requires .NET 10) starting against .NET 8/9 and immediately failing. Changed condition to: install .NET 10 unless it is already installed. Old 8.0/9.0 packages are removed with || true to avoid errors on clean installs. Fixes #14045
This commit is contained in:
committed by
GitHub
parent
424575d8c1
commit
c32ca537f1
@@ -32,8 +32,8 @@ function update_script() {
|
||||
systemctl daemon-reload
|
||||
systemctl enable -q --now technitium
|
||||
fi
|
||||
if is_package_installed "aspnetcore-runtime-8.0" || is_package_installed "aspnetcore-runtime-9.0"; then
|
||||
$STD apt remove -y aspnetcore-runtime-*
|
||||
if ! is_package_installed "aspnetcore-runtime-10.0"; then
|
||||
$STD apt remove -y aspnetcore-runtime-8.0 aspnetcore-runtime-9.0 2>/dev/null || true
|
||||
[ -f /etc/apt/sources.list.d/microsoft-prod.list ] && rm -f /etc/apt/sources.list.d/microsoft-prod.list
|
||||
[ -f /usr/share/keyrings/microsoft-prod.gpg ] && rm -f /usr/share/keyrings/microsoft-prod.gpg
|
||||
setup_deb822_repo \
|
||||
|
||||
Reference in New Issue
Block a user