Update pihole.sh to update PiHole service (#2781)

Add pihole update functionality
This commit is contained in:
Ryan Freeman 2024-04-12 17:13:39 +01:00 committed by GitHub
parent 170066a73b
commit f956428321
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -55,11 +55,12 @@ function default_settings() {
function update_script() {
header_info
if [[ ! -d /etc/pihole ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
msg_info "Updating ${APP} LXC"
apt-get update &>/dev/null
apt-get -y upgrade &>/dev/null
msg_ok "Updated Successfully"
msg_info "Updating ${APP}"
set +e
pihole -up
msg_ok "Updated ${APP}"
exit
fi
}
start