diff --git a/ct/adguard.sh b/ct/adguard.sh index e9e667c9..b7a8fdd5 100644 --- a/ct/adguard.sh +++ b/ct/adguard.sh @@ -56,6 +56,10 @@ function default_settings() { function update_script() { header_info 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? " prompt + [[ ${prompt,,} =~ ^(y|yes)$ ]] || exit +fi wget -qL https://static.adguard.com/adguardhome/release/AdGuardHome_linux_amd64.tar.gz msg_info "Stopping AdguardHome" systemctl stop AdGuardHome