Revert "Refactor AdGuard Home update process (#19291)"

This reverts commit 681e168ff7.
This commit is contained in:
CanbiZ (MickLesk) authored and GitHub committed 2026-12-04 06:32:49 +01:00
1 parent 681e168ff7
commit cd6ab486c1
1 file changed
+22 -3
+22 -3
View File
@@ -32,9 +32,28 @@ variables
color
catch_errors
msg_info "Updating AdGuard Home"
$STD /opt/AdGuardHome/AdGuardHome --update
msg_ok "Updated AdGuard Home"
update_deb_based() {
if [[ ! -d /opt/AdGuardHome ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
msg_error "Adguard Home can only be updated via the user interface."
}
update_alpine() {
msg_info "Updating Alpine Packages"
$STD apk -U upgrade
msg_ok "Updated Alpine Packages"
msg_info "Updating AdGuard Home"
$STD /opt/AdGuardHome/AdGuardHome --update
msg_ok "Updated AdGuard Home"
msg_info "Restarting AdGuard Home"
$STD rc-service adguardhome restart
msg_ok "Restarted AdGuard Home"
msg_ok "Updated successfully!"
}
function update_script() {
header_info