Adds support for pihole update manager (#151)

This commit is contained in:
Philipp Weißmann
2019-05-15 12:08:15 +02:00
committed by Roey Darwish Dror
parent ac2524edd7
commit 4f61a12013
3 changed files with 17 additions and 0 deletions

View File

@@ -310,6 +310,16 @@ pub fn run_rpi_update(sudo: Option<&PathBuf>, run_type: RunType) -> Result<(), E
run_type.execute(sudo).arg(rpi_update).check_run()
}
#[must_use]
pub fn run_pihole_update(sudo: Option<&PathBuf>, run_type: RunType) -> Result<(), Error> {
let sudo = require_option(sudo)?;
let pihole = require("pihole")?;
print_separator("pihole");
run_type.execute(sudo).arg(pihole).arg("-up").check_run()
}
#[must_use]
pub fn run_etc_update(sudo: Option<&PathBuf>, run_type: RunType) -> Result<(), Error> {
let sudo = require_option(sudo)?;