This commit is contained in:
2024-01-14 18:40:47 -06:00
parent 12167e8d5a
commit a4430227e3
17 changed files with 13370 additions and 48 deletions

View File

@@ -3,6 +3,7 @@ package config
import (
"log"
"os"
"os/exec"
"time"
)
@@ -32,6 +33,12 @@ func Init() {
os.Exit(1)
}
// check to see if nsupdate is installed
cmd := "command -v nsupdate"
if err := exec.Command("/usr/bin/sh", "-c", cmd).Run(); err != nil {
panic("nsupdate is not installed")
}
// print running config
printRunningConfig(&Cfg, cfgInfo)
}