Skip to content

Commit a4ccf7d

Browse files
authored
Technitium DNS: Fix update (#8980)
* Fix update * Update technitiumdns-install.sh
1 parent db29b24 commit a4ccf7d

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

ct/technitiumdns.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ function update_script() {
2828
exit
2929
fi
3030

31+
if is_package_installed "aspnetcore-runtime-8.0"; then
32+
$STD apt remove -y aspnetcore-runtime-8.0
33+
$STD apt install -y aspnetcore-runtime-9.0
34+
fi
35+
3136
RELEASE=$(curl -fsSL https://technitium.com/dns/ | grep -oP 'Version \K[\d.]+')
3237
if [[ ! -f ~/.technitium || "${RELEASE}" != "$(cat ~/.technitium)" ]]; then
3338
msg_info "Updating Technitium DNS"

install/technitiumdns-install.sh

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,23 @@ curl -fsSL "https://packages.microsoft.com/config/debian/12/packages-microsoft-p
1818
$STD dpkg -i packages-microsoft-prod.deb
1919
rm -rf packages-microsoft-prod.deb
2020
$STD apt update
21-
$STD apt install -y aspnetcore-runtime-8.0
21+
$STD apt install -y aspnetcore-runtime-9.0
2222
msg_ok "Installed ASP.NET Core Runtime"
2323

2424
RELEASE=$(curl -fsSL https://technitium.com/dns/ | grep -oP 'Version \K[\d.]+')
2525
msg_info "Installing Technitium DNS"
2626
mkdir -p /opt/technitium/dns
2727
curl -fsSL "https://download.technitium.com/dns/DnsServerPortable.tar.gz" -o /opt/DnsServerPortable.tar.gz
2828
$STD tar zxvf /opt/DnsServerPortable.tar.gz -C /opt/technitium/dns/
29+
rm -f /opt/DnsServerPortable.tar.gz
2930
echo "${RELEASE}" >~/.technitium
3031
msg_ok "Installed Technitium DNS"
3132

3233
msg_info "Creating service"
3334
cp /opt/technitium/dns/systemd.service /etc/systemd/system/technitium.service
34-
systemctl enable -q --now technitium
35+
systemctl enable -q --now technitium
3536
msg_ok "Service created"
3637

3738
motd_ssh
3839
customize
39-
40-
msg_info "Cleaning up"
41-
rm -f /opt/DnsServerPortable.tar.gz
42-
$STD apt -y autoremove
43-
$STD apt -y autoclean
44-
$STD apt -y clean
45-
msg_ok "Cleaned"
40+
cleanup_lxc

0 commit comments

Comments
 (0)