From 50614a4399e2b1805bdea58dc2d82d13a9373d8a Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Thu, 6 Apr 2023 08:46:59 +0200 Subject: [PATCH] Rename to install-unbound-server.ps1 --- ...nstall-unbound.ps1 => install-unbound-server.ps1} | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) rename Scripts/{install-unbound.ps1 => install-unbound-server.ps1} (89%) diff --git a/Scripts/install-unbound.ps1 b/Scripts/install-unbound-server.ps1 similarity index 89% rename from Scripts/install-unbound.ps1 rename to Scripts/install-unbound-server.ps1 index e71ffa71..23979217 100755 --- a/Scripts/install-unbound.ps1 +++ b/Scripts/install-unbound-server.ps1 @@ -1,10 +1,10 @@ <# .SYNOPSIS - Installs Unbound (needs admin rights) + Installs Unbound server (needs admin rights) .DESCRIPTION This PowerShell script installs Unbound, a validating, recursive, caching DNS resolver. It needs admin rights. .EXAMPLE - PS> ./install-unbound + PS> ./install-unbound-server .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -20,7 +20,7 @@ try { & sudo apt update -y if ($lastExitCode -ne "0") { throw "'apt update' failed" } - "⏳ (2/10) Installing Unbound package..." + "⏳ (2/10) Installing the Unbound package..." & sudo apt install unbound unbound-anchor -y if ($lastExitCode -ne "0") { throw "'apt install unbound' failed" } @@ -49,11 +49,11 @@ try { & sudo unbound-control start if ($lastExitCode -ne "0") { throw "'unbound-control start' failed" } - "⏳ (9/10) Checking Unbound status..." + "⏳ (9/10) Checking status of Unbound..." & sudo unbound-control status if ($lastExitCode -ne "0") { throw "'unbound-control status' failed" } - "⏳ (10/10) Training Unbound with popular domain names..." + "⏳ (10/10) Training Unbound with 200 popular domain names..." & "$PSScriptRoot/check-dns.ps1" if ($lastExitCode -ne "0") { throw "'unbound-control status' failed" } @@ -63,4 +63,4 @@ try { } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" exit 1 -} \ No newline at end of file +}