summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
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()