nsupdate
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user