mirror of
https://code.dumpstack.io/tools/appvm.git
synced 2025-05-01 09:34:23 +00:00
Generate X monitor section is no more required
This commit is contained in:
parent
1270b2e209
commit
55a825a7c0
6 changed files with 2 additions and 40 deletions
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue