File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff 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
1919rm -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
2222msg_ok " Installed ASP.NET Core Runtime"
2323
2424RELEASE=$( curl -fsSL https://technitium.com/dns/ | grep -oP ' Version \K[\d.]+' )
2525msg_info " Installing Technitium DNS"
2626mkdir -p /opt/technitium/dns
2727curl -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
2930echo " ${RELEASE} " > ~/.technitium
3031msg_ok " Installed Technitium DNS"
3132
3233msg_info " Creating service"
3334cp /opt/technitium/dns/systemd.service /etc/systemd/system/technitium.service
34- systemctl enable -q --now technitium
35+ systemctl enable -q --now technitium
3536msg_ok " Service created"
3637
3738motd_ssh
3839customize
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
You can’t perform that action at this time.
0 commit comments