Generate X monitor section is no more required

This commit is contained in:
Mikhail Klementev 2019-12-29 14:35:39 +00:00
parent 1270b2e209
commit 55a825a7c0
No known key found for this signature in database
GPG key ID: BE44DA8C062D87DC
6 changed files with 2 additions and 40 deletions

View file

@ -125,8 +125,8 @@ func list(l *libvirt.Libvirt) {
for _, f := range files {
if f.Name() != "base.nix" &&
f.Name() != "local.nix" && f.Name() != "monitor.nix" &&
f.Name() != "local.nix.template" && f.Name() != "monitor.nix.template" {
f.Name() != "local.nix" &&
f.Name() != "local.nix.template" {
fmt.Println("\t", f.Name()[0:len(f.Name())-4])
}
}
@ -161,12 +161,6 @@ func prepareTemplates(appvmPath string) (err error) {
}
}
if _, err = os.Stat(appvmPath + "/nix/monitor.nix"); os.IsNotExist(err) {
err = copyFile(appvmPath+"/nix/monitor.nix.template", appvmPath+"/nix/monitor.nix")
if err != nil {
return
}
}
return
}