summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-10 22:35:20 -0500
committerJeff Carr <[email protected]>2025-09-10 22:35:20 -0500
commit43d653a8c040d68a4386d1fc1cc7cfa18ce34e83 (patch)
tree775ffc06fc9536de221a36b6855fe391132f5f7d /main.go
parent6722b019ec1271fd95a970f14e2e2aed4cdf6116 (diff)
add config file support
Diffstat (limited to 'main.go')
-rw-r--r--main.go14
1 files changed, 1 insertions, 13 deletions
diff --git a/main.go b/main.go
index 3d601a5..be466a3 100644
--- a/main.go
+++ b/main.go
@@ -4,7 +4,6 @@ import (
"embed"
"fmt"
"net/http"
- "os"
"time"
"go.wit.com/dev/alexflint/arg"
@@ -31,18 +30,7 @@ func main() {
me.myGui = prep.Gui() // prepares the GUI package for go-args
me.pp = arg.MustParse(&argv)
- if argv.Hostname != "" {
- HOSTNAME = argv.Hostname
- }
-
- // the default forged dir is /home/forge
- if os.Getenv("FORGE_GOSRC") == "" {
- os.Setenv("FORGE_GOSRC", "/home/forge")
- }
-
- if os.Getenv("FORGE_PATCHDIR") == "" {
- os.Setenv("FORGE_PATCHDIR", "/var/lib/forged")
- }
+ me.configInit() // reads in the config file
me.forge = forgepb.RawInitPB()