Skip to content

Commit 37e3739

Browse files
authored
Update AdGuard Home to Debian 13 and improve install (#7720)
1 parent f5eda37 commit 37e3739

File tree

3 files changed

+62
-63
lines changed

3 files changed

+62
-63
lines changed

ct/adguard.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var_cpu="${var_cpu:-1}"
1111
var_ram="${var_ram:-512}"
1212
var_disk="${var_disk:-2}"
1313
var_os="${var_os:-debian}"
14-
var_version="${var_version:-12}"
14+
var_version="${var_version:-13}"
1515
var_unprivileged="${var_unprivileged:-1}"
1616

1717
header_info "$APP"
@@ -20,15 +20,15 @@ color
2020
catch_errors
2121

2222
function update_script() {
23-
header_info
24-
check_container_storage
25-
check_container_resources
26-
if [[ ! -d /opt/AdGuardHome ]]; then
27-
msg_error "No ${APP} Installation Found!"
28-
exit
29-
fi
30-
msg_error "Adguard Home should be updated via the user interface."
23+
header_info
24+
check_container_storage
25+
check_container_resources
26+
if [[ ! -d /opt/AdGuardHome ]]; then
27+
msg_error "No ${APP} Installation Found!"
3128
exit
29+
fi
30+
msg_error "Adguard Home can only be updated via the user interface."
31+
exit
3232
}
3333

3434
start
@@ -38,4 +38,4 @@ description
3838
msg_ok "Completed Successfully!\n"
3939
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
4040
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
41-
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}"
41+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}"

frontend/public/json/adguard.json

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,51 @@
11
{
2-
"name": "AdGuard Home",
3-
"slug": "adguard",
4-
"categories": [
5-
5
6-
],
7-
"date_created": "2024-04-28",
8-
"type": "ct",
9-
"updateable": true,
10-
"privileged": false,
11-
"interface_port": 3000,
12-
"documentation": "https://github.com/AdguardTeam/AdGuardHome/wiki/Getting-Started",
13-
"website": "https://adguard.com/en/adguard-home/overview.html",
14-
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/adguard-home.webp",
15-
"config_path": "/opt/AdGuardHome/AdGuardHome.yaml",
16-
"description": "AdGuard Home is an open-source, self-hosted network-wide ad blocker. It blocks advertisements, trackers, phishing and malware websites, and provides protection against online threats. AdGuard Home is a DNS-based solution, which means it blocks ads and malicious content at the network level, before it even reaches your device. It runs on your home network and can be easily configured and managed through a web-based interface. It provides detailed statistics and logs, allowing you to see which websites are being blocked, and why. AdGuard Home is designed to be fast, lightweight, and easy to use, making it an ideal solution for home users who want to block ads, protect their privacy, and improve the speed and security of their online experience.",
17-
"install_methods": [
18-
{
19-
"type": "default",
20-
"script": "ct/adguard.sh",
21-
"resources": {
22-
"cpu": 1,
23-
"ram": 512,
24-
"hdd": 2,
25-
"os": "debian",
26-
"version": "12"
27-
}
28-
},
29-
{
30-
"type": "alpine",
31-
"script": "ct/alpine-adguard.sh",
32-
"resources": {
33-
"cpu": 1,
34-
"ram": 256,
35-
"hdd": 1,
36-
"os": "alpine",
37-
"version": "3.22"
38-
}
39-
}
40-
],
41-
"default_credentials": {
42-
"username": null,
43-
"password": null
2+
"name": "AdGuard Home",
3+
"slug": "adguard",
4+
"categories": [
5+
5
6+
],
7+
"date_created": "2024-04-28",
8+
"type": "ct",
9+
"updateable": true,
10+
"privileged": false,
11+
"interface_port": 3000,
12+
"documentation": "https://github.com/AdguardTeam/AdGuardHome/wiki/Getting-Started",
13+
"website": "https://adguard.com/en/adguard-home/overview.html",
14+
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/adguard-home.webp",
15+
"config_path": "/opt/AdGuardHome/AdGuardHome.yaml",
16+
"description": "AdGuard Home is an open-source, self-hosted network-wide ad blocker. It blocks advertisements, trackers, phishing and malware websites, and provides protection against online threats. AdGuard Home is a DNS-based solution, which means it blocks ads and malicious content at the network level, before it even reaches your device. It runs on your home network and can be easily configured and managed through a web-based interface. It provides detailed statistics and logs, allowing you to see which websites are being blocked, and why. AdGuard Home is designed to be fast, lightweight, and easy to use, making it an ideal solution for home users who want to block ads, protect their privacy, and improve the speed and security of their online experience.",
17+
"install_methods": [
18+
{
19+
"type": "default",
20+
"script": "ct/adguard.sh",
21+
"resources": {
22+
"cpu": 1,
23+
"ram": 512,
24+
"hdd": 2,
25+
"os": "debian",
26+
"version": "13"
27+
}
4428
},
45-
"notes": [
46-
{
47-
"text": "Adguard Home can be updated via the user interface.",
48-
"type": "info"
49-
}
50-
]
29+
{
30+
"type": "alpine",
31+
"script": "ct/alpine-adguard.sh",
32+
"resources": {
33+
"cpu": 1,
34+
"ram": 256,
35+
"hdd": 1,
36+
"os": "alpine",
37+
"version": "3.22"
38+
}
39+
}
40+
],
41+
"default_credentials": {
42+
"username": null,
43+
"password": null
44+
},
45+
"notes": [
46+
{
47+
"text": "AdGuard Home can only be updated via the user interface.",
48+
"type": "info"
49+
}
50+
]
5151
}

install/adguard-install.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ setting_up_container
1313
network_check
1414
update_os
1515

16-
msg_info "Installing AdGuard Home"
17-
$STD tar zxvf <(curl -fsSL https://static.adtidy.org/adguardhome/release/AdGuardHome_linux_amd64.tar.gz) -C /opt
18-
msg_ok "Installed AdGuard Home"
16+
fetch_and_deploy_gh_release "AdGuardHome" "AdguardTeam/AdGuardHome" "prebuild" "latest" "/opt/AdGuardHome" "AdGuardHome_linux_amd64.tar.gz"
1917

2018
msg_info "Creating Service"
2119
cat <<EOF >/etc/systemd/system/AdGuardHome.service
@@ -45,6 +43,7 @@ motd_ssh
4543
customize
4644

4745
msg_info "Cleaning up"
48-
$STD apt-get -y autoremove
49-
$STD apt-get -y autoclean
46+
$STD apt -y autoremove
47+
$STD apt -y autoclean
48+
$STD apt -y clean
5049
msg_ok "Cleaned"

0 commit comments

Comments
 (0)