Update pihole only if using the pihole distribution (fix #373) (#375)

This commit is contained in:
Roey Darwish Dror
2020-03-17 15:11:53 +02:00
committed by GitHub
parent 11a570c9a0
commit 30505f7751

View File

@@ -446,6 +446,7 @@ pub fn run_snap(sudo: Option<&PathBuf>, run_type: RunType) -> Result<()> {
pub fn run_pihole_update(sudo: Option<&PathBuf>, run_type: RunType) -> Result<()> {
let sudo = require_option(sudo)?;
let pihole = require("pihole")?;
Path::new("/opt/pihole/update.sh").require()?;
print_separator("pihole");