tteckster 10 months ago committed by GitHub
parent 9f84dbf1bd
commit f674b8af03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -56,6 +56,10 @@ function default_settings() {
function update_script() { function update_script() {
header_info header_info
if [[ ! -d /opt/AdGuardHome ]]; then msg_error "No ${APP} Installation Found!"; exit; fi if [[ ! -d /opt/AdGuardHome ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
if (( $(df /boot | awk 'NR==2{gsub("%","",$5); print $5}') > 80 )); then
read -r -p "Warning: Storage is dangerously low, continue anyway? <y/N> " prompt
[[ ${prompt,,} =~ ^(y|yes)$ ]] || exit
fi
wget -qL https://static.adguard.com/adguardhome/release/AdGuardHome_linux_amd64.tar.gz wget -qL https://static.adguard.com/adguardhome/release/AdGuardHome_linux_amd64.tar.gz
msg_info "Stopping AdguardHome" msg_info "Stopping AdguardHome"
systemctl stop AdGuardHome systemctl stop AdGuardHome

Loading…
Cancel
Save

Powered by BW's shoe-string budget.