Added env var info to init, dameon help
See #1296 License: MIT Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
Richard Littauer committed
Jan 13, 2016 at 10:56 UTC
6f222711d90ca100ec65fdf0fac8999c9b84cb06
2 files changed
+17
-1
cmd/ipfs/daemon.go
+7
@@ -100,6 +100,13 @@ Shutdown
100
To shutdown, kill, quit, or otherwise stop the daemon, send a SIGTERM signal.
101
If it persists, send a second. This can be done by pressing Ctrl+C twice.
102
103
+IPFS_PATH environment variable
104
+
105
+ipfs uses a repository in the local file system. By default, the repo is located
106
+at ~/.ipfs. To change the repo location, set the $IPFS_PATH environment variable:
107
+
108
+ export IPFS_PATH=/path/to/ipfsrepo
109
+
110
DEPRECATION NOTICE
111
112
Previously, IPFS used an environment variable as seen below:
cmd/ipfs/init.go
+10
-1
@@ -21,7 +21,16 @@ const nBitsForKeypairDefault = 2048
21
var initCmd = &cmds.Command{
22
Helptext: cmds.HelpText{
23
Tagline: "Initializes IPFS config file",
24
- ShortDescription: "Initializes IPFS configuration files and generates a new keypair.",
24
+ ShortDescription: `
25
+Initializes IPFS configuration files and generates a new keypair.
26
+
27
+IPFS_PATH environment variable
28
+
29
+ipfs uses a repository in the local file system. By default, the repo is located
30
+at ~/.ipfs. To change the repo location, set the $IPFS_PATH environment variable:
31
+
32
+ export IPFS_PATH=/path/to/ipfsrepo
33
+`,
34
},
35
36
Options: []cmds.Option{