From eed0fc8001ef97e16bd6ccc1596f628a9a0d2544 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Mon, 4 Sep 2017 07:55:57 -0400 Subject: [PATCH] fix docs --- contrib/backends/srndv2/srnd.go | 2 +- doc/running.md | 4 ++++ doc/setting-up.md | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/contrib/backends/srndv2/srnd.go b/contrib/backends/srndv2/srnd.go index debe328..705c5e4 100644 --- a/contrib/backends/srndv2/srnd.go +++ b/contrib/backends/srndv2/srnd.go @@ -45,7 +45,7 @@ func main() { if len(os.Args) > 2 { tool := os.Args[2] if tool == "mod" { - if len(os.Args) == 4 && os.Args[3] == "do" { + if len(os.Args) >= 4 && strings.ToLower(os.Args[3]) == "do" { daemon.Setup() eng := daemon.ModEngine() r := bufio.NewReader(os.Stdin) diff --git a/doc/running.md b/doc/running.md index ef77f97..806d70e 100644 --- a/doc/running.md +++ b/doc/running.md @@ -3,6 +3,10 @@ Running NNTPChan Once you have [built NNTPChan](building.md) and done [the initial setup you](setting-up.md) you can start NNTPChan. +Before running make sure you run the setup command, you only need to do this one time: + + ./srndv2 setup + You can now start the NNTPChan node (srndv2) by running: ./srndv2 run diff --git a/doc/setting-up.md b/doc/setting-up.md index 7784afa..d84a4dd 100644 --- a/doc/setting-up.md +++ b/doc/setting-up.md @@ -68,6 +68,7 @@ NNTPChan needs to know the paths to the listed programs on your system. Check out the following in order: 1. Setting up data-storage system (choose i or ii) - 1. [Setting up using Postgres](database/postgres/configure-postgres.md) + +1. [Setting up using Postgres](database/postgres/configure-postgres.md) 2. [Setting up NNTPChan system](srnd.md) 3. [Setting up feeds](feeds.md)