Generate X monitor section is no more required
This commit is contained in:
10
appvm.go
10
appvm.go
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user