Skip to content

Commit f7adce2

Browse files
MickLeskhavardthom
andauthored
Remove Update Code from Adguard Home (#213)
* Remove Update Code from Adguard Home * Update adguard.json * Update ct/adguard.sh Co-authored-by: Håvard Gjøby Thom <[email protected]> * Update json/adguard.json Co-authored-by: Håvard Gjøby Thom <[email protected]> * improve Text in json --------- Co-authored-by: Håvard Gjøby Thom <[email protected]>
1 parent 612f41a commit f7adce2

File tree

2 files changed

+8
-24
lines changed

2 files changed

+8
-24
lines changed

ct/adguard.sh

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -60,28 +60,7 @@ if (( $(df /boot | awk 'NR==2{gsub("%","",$5); print $5}') > 80 )); then
6060
read -r -p "Warning: Storage is dangerously low, continue anyway? <y/N> " prompt
6161
[[ ${prompt,,} =~ ^(y|yes)$ ]] || exit
6262
fi
63-
wget -qL https://static.adguard.com/adguardhome/release/AdGuardHome_linux_amd64.tar.gz
64-
msg_info "Stopping AdguardHome"
65-
systemctl stop AdGuardHome
66-
msg_ok "Stopped AdguardHome"
67-
68-
msg_info "Updating AdguardHome"
69-
tar -xvf AdGuardHome_linux_amd64.tar.gz &>/dev/null
70-
mkdir -p adguard-backup
71-
cp -r /opt/AdGuardHome/AdGuardHome.yaml /opt/AdGuardHome/data adguard-backup/
72-
cp AdGuardHome/AdGuardHome /opt/AdGuardHome/AdGuardHome
73-
cp -r adguard-backup/* /opt/AdGuardHome/
74-
msg_ok "Updated AdguardHome"
75-
76-
msg_info "Starting AdguardHome"
77-
systemctl start AdGuardHome
78-
msg_ok "Started AdguardHome"
79-
80-
msg_info "Cleaning Up"
81-
rm -rf AdGuardHome_linux_amd64.tar.gz AdGuardHome adguard-backup
82-
msg_ok "Cleaned"
83-
msg_ok "Updated Successfully"
84-
exit
63+
echo "Adguard Home should be updated via the user interface. You can access it at: ${BL}http://${IP}:3000"
8564
}
8665

8766
start

json/adguard.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,10 @@
3030
"username": null,
3131
"password": null
3232
},
33-
"notes": []
34-
}
33+
"notes": [
34+
{
35+
"text": "Adguard Home can be updated via the user interface.",
36+
"type": "warning"
37+
}
38+
]
39+
}

0 commit comments

Comments
 (0)