diff options
| author | Jeff Carr <[email protected]> | 2025-09-10 22:35:20 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-10 22:35:20 -0500 |
| commit | 43d653a8c040d68a4386d1fc1cc7cfa18ce34e83 (patch) | |
| tree | 775ffc06fc9536de221a36b6855fe391132f5f7d /main.go | |
| parent | 6722b019ec1271fd95a970f14e2e2aed4cdf6116 (diff) | |
add config file support
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 14 |
1 files changed, 1 insertions, 13 deletions
@@ -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() |
