Update AdGuard Home to Debian 13 and improve install (#7720)

This commit is contained in:
CanbiZ 2025-09-18 15:20:15 +02:00 committed by GitHub
parent f5eda37397
commit 37e3739bd2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 62 additions and 63 deletions

View File

@ -11,7 +11,7 @@ var_cpu="${var_cpu:-1}"
var_ram="${var_ram:-512}" var_ram="${var_ram:-512}"
var_disk="${var_disk:-2}" var_disk="${var_disk:-2}"
var_os="${var_os:-debian}" var_os="${var_os:-debian}"
var_version="${var_version:-12}" var_version="${var_version:-13}"
var_unprivileged="${var_unprivileged:-1}" var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
@ -27,7 +27,7 @@ function update_script() {
msg_error "No ${APP} Installation Found!" msg_error "No ${APP} Installation Found!"
exit exit
fi fi
msg_error "Adguard Home should be updated via the user interface." msg_error "Adguard Home can only be updated via the user interface."
exit exit
} }

View File

@ -23,7 +23,7 @@
"ram": 512, "ram": 512,
"hdd": 2, "hdd": 2,
"os": "debian", "os": "debian",
"version": "12" "version": "13"
} }
}, },
{ {
@ -44,7 +44,7 @@
}, },
"notes": [ "notes": [
{ {
"text": "Adguard Home can be updated via the user interface.", "text": "AdGuard Home can only be updated via the user interface.",
"type": "info" "type": "info"
} }
] ]

View File

@ -13,9 +13,7 @@ setting_up_container
network_check network_check
update_os update_os
msg_info "Installing AdGuard Home" fetch_and_deploy_gh_release "AdGuardHome" "AdguardTeam/AdGuardHome" "prebuild" "latest" "/opt/AdGuardHome" "AdGuardHome_linux_amd64.tar.gz"
$STD tar zxvf <(curl -fsSL https://static.adtidy.org/adguardhome/release/AdGuardHome_linux_amd64.tar.gz) -C /opt
msg_ok "Installed AdGuard Home"
msg_info "Creating Service" msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/AdGuardHome.service cat <<EOF >/etc/systemd/system/AdGuardHome.service
@ -45,6 +43,7 @@ motd_ssh
customize customize
msg_info "Cleaning up" msg_info "Cleaning up"
$STD apt-get -y autoremove $STD apt -y autoremove
$STD apt-get -y autoclean $STD apt -y autoclean
$STD apt -y clean
msg_ok "Cleaned" msg_ok "Cleaned"