Browse Source

fix(etcd): use . as the storage

/tmp is convienent but a little unexpected. Just use the cwd.
Brandon Philips 12 years ago
parent
commit
5e8f9a57a5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      etcd.go

+ 1 - 1
etcd.go

@@ -72,7 +72,7 @@ func init() {
 	flag.StringVar(&argInfo.ClientCertFile, "clientCert", "", "the cert file of the client")
 	flag.StringVar(&argInfo.ClientKeyFile, "clientKey", "", "the key file of the client")
 
-	flag.StringVar(&dirPath, "d", "/tmp/", "the directory to store log and snapshot")
+	flag.StringVar(&dirPath, "d", ".", "the directory to store log and snapshot")
 
 	flag.BoolVar(&ignore, "i", false, "ignore the old configuration, create a new node")