From d76150d9a35591c6b29eb1d86c34f68a86b4fbdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Tue, 23 Dec 2025 14:18:24 +0100 Subject: [PATCH] Migrate service file to refactored installation (#10240) --- ct/technitiumdns.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ct/technitiumdns.sh b/ct/technitiumdns.sh index f22fb9de3..b114aa1b3 100644 --- a/ct/technitiumdns.sh +++ b/ct/technitiumdns.sh @@ -27,7 +27,10 @@ function update_script() { msg_error "No ${APP} Installation Found!" exit fi - + if [[ -f /etc/systemd/system/dns.service ]]; then + mv /etc/systemd/system/dns.service /etc/systemd/system/technitium.service + systemctl daemon-reload + fi if is_package_installed "aspnetcore-runtime-8.0"; then $STD apt remove -y aspnetcore-runtime-8.0 [ -f /etc/apt/sources.list.d/microsoft-prod.list ] && rm -f /etc/apt/sources.list.d/microsoft-prod.list @@ -42,7 +45,7 @@ function update_script() { fi RELEASE=$(curl -fsSL https://technitium.com/dns/ | grep -oP 'Version \K[\d.]+') - if [[ ! -f ~/.technitium || "${RELEASE}" != "$(cat ~/.technitium)" ]]; then + if [[ ! -f ~/.technitium || ${RELEASE} != "$(cat ~/.technitium)" ]]; then msg_info "Updating Technitium DNS" curl -fsSL "https://download.technitium.com/dns/DnsServerPortable.tar.gz" -o /opt/DnsServerPortable.tar.gz $STD tar zxvf /opt/DnsServerPortable.tar.gz -C /opt/technitium/dns/