Files
ProxmoxVE/install/technitiumdns-install.sh
T

40 lines
1.1 KiB
Bash
Raw Normal View History

2023-03-22 20:48:20 -04:00
#!/usr/bin/env bash
# Copyright (c) 2021-2026 tteck
2023-03-22 20:48:20 -04:00
# Author: tteck (tteckster)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://technitium.com/dns/
2023-03-22 20:48:20 -04:00
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
2023-03-22 20:48:20 -04:00
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
2025-12-11 10:53:49 +01:00
msg_info "Installing Dependencies"
setup_deb822_repo \
"microsoft" \
"https://packages.microsoft.com/keys/microsoft-2025.asc" \
"https://packages.microsoft.com/debian/13/prod/" \
"trixie" \
"main"
2026-04-26 00:37:19 +02:00
$STD apt install -y aspnetcore-runtime-10.0
2025-12-11 10:53:49 +01:00
msg_ok "Installed Dependencies"
2023-03-22 20:48:20 -04:00
2025-08-19 14:05:37 +02:00
RELEASE=$(curl -fsSL https://technitium.com/dns/ | grep -oP 'Version \K[\d.]+')
2026-04-26 00:37:19 +02:00
fetch_and_deploy_from_url "https://download.technitium.com/dns/DnsServerPortable.tar.gz" /opt/technitium/dns
2025-10-09 19:43:23 +02:00
echo "${RELEASE}" >~/.technitium
2023-03-22 20:48:20 -04:00
2025-08-19 14:05:37 +02:00
msg_info "Creating service"
mkdir -p /etc/dns /var/log/technitium/dns
2026-04-26 00:37:19 +02:00
sed -i '/^User=/d;/^Group=/d' /opt/technitium/dns/systemd.service
2025-08-19 14:05:37 +02:00
cp /opt/technitium/dns/systemd.service /etc/systemd/system/technitium.service
2026-04-26 00:37:19 +02:00
systemctl enable -q --now technitium
2025-08-19 14:05:37 +02:00
msg_ok "Service created"
2023-03-22 20:48:20 -04:00
motd_ssh
2023-05-15 07:39:30 -04:00
customize
2025-11-08 18:26:19 +01:00
cleanup_lxc