summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-27 08:32:54 -0500
committerJeff Carr <[email protected]>2024-10-27 08:32:54 -0500
commitcc092bd8955ce7589fb2d92c091a5da3f8f714e5 (patch)
tree3255979795c09bcd6a406cb5f25f3a874480350f /main.go
parent6934c8a2c42def64d890aae8eb79b9ef8be55fd2 (diff)
somehow dirs aren't saving
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/main.go b/main.go
index db81d9a..0c4f04a 100644
--- a/main.go
+++ b/main.go
@@ -18,7 +18,6 @@ import (
"embed"
"net"
"os"
- "path/filepath"
"time"
"github.com/digitalocean/go-qemu/hypervisor"
@@ -33,11 +32,6 @@ var hv *hypervisor.Hypervisor
var resources embed.FS
func main() {
- if os.Getenv("VIRTIGO_HOME") == "" {
- homeDir, _ := os.UserHomeDir()
- fullpath := filepath.Join(homeDir, ".config/virtigo")
- os.Setenv("VIRTIGO_HOME", fullpath)
- }
var pp *arg.Parser
pp = arg.MustParse(&argv)
@@ -45,6 +39,7 @@ func main() {
pp.WriteHelp(os.Stdout)
os.Exit(0)
}
+ me = new(Virtigod)
me.Hostname, _ = os.Hostname()
log.DaemonMode(true)