Update alpine-adguard-v5-install.sh

Tweak
This commit is contained in:
tteckster 2023-03-18 16:43:10 -04:00 committed by GitHub
parent 3d15e5b026
commit fc5521f2f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -105,7 +105,7 @@ $STD apk add mc
$STD apk add openssh
msg_ok "Installed Dependencies"
msg_info "Installing AdguardHome"
msg_info "Installing $APPLICATION"
VER=$(curl --silent -qI https://github.com/AdguardTeam/AdGuardHome/releases/latest | awk -F '/' '/^location/ {print substr($NF, 1, length($NF)-1)}');
$STD wget -q "https://github.com/AdguardTeam/AdGuardHome/releases/download/$VER/AdGuardHome_linux_amd64.tar.gz"
$STD tar -xvf AdGuardHome_linux_amd64.tar.gz >/dev/null 2>&1
@ -114,7 +114,7 @@ $STD rm AdGuardHome_linux_amd64.tar.gz
$STD chmod +x /opt/AdGuardHome/AdGuardHome
$STD /opt/AdGuardHome/AdGuardHome -s install
$STD /opt/AdGuardHome/AdGuardHome -s start
$STD msg_ok "Installed AdguardHome"
$STD msg_ok "Installed $APPLICATION"
echo -e "$APPLICATION LXC provided by https://tteck.github.io/Proxmox/\n" > /etc/motd
if [[ "${SSH_ROOT}" == "yes" ]]; then