mirror of
https://code.dumpstack.io/tools/appvm.git
synced 2025-03-11 01:09:10 +00:00
Create appvm directory at start
This commit is contained in:
parent
8bcf3eae87
commit
959e6e6596
1 changed files with 2 additions and 0 deletions
2
appvm.go
2
appvm.go
|
@ -361,6 +361,8 @@ func autoBalloon(l *libvirt.Libvirt, memoryMin, adjustPercent uint64) {
|
|||
}
|
||||
|
||||
func main() {
|
||||
os.Mkdir(os.Getenv("HOME")+"/appvm", 0700)
|
||||
|
||||
c, err := net.DialTimeout("unix", "/var/run/libvirt/libvirt-sock", time.Second)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
|
|
Loading…
Add table
Reference in a new issue