Merge pull request #1032 from koolhead17/command-modification

Modified command for adding a host to minio.
master
Harshavardhana 9 years ago
commit 3cb92bdf9c
  1. 8
      README.md
  2. 8
      server-main.go

@ -52,9 +52,9 @@ Download ``minio`` for:
C:\Users\Username\Downloads> minio.exe --help C:\Users\Username\Downloads> minio.exe --help
~~~ ~~~
#### Docker container #### Docker container
Download ``minio`` for docker. Download ``minio`` for docker.
~~~ ~~~
$ docker pull minio/minio $ docker pull minio/minio
@ -112,9 +112,9 @@ To configure Minio Client.
$ wget https://dl.minio.io/client/mc/release/linux-amd64/mc $ wget https://dl.minio.io/client/mc/release/linux-amd64/mc
$ chmod 755 mc $ chmod 755 mc
$ ./mc config host add http://localhost:9000 G5GJRH51R2HSUWYPGIX5 uxhBC1Yscut3/u81l5L8Yp636ZUk32N4m/gFASuZ $ ./mc config host add http://localhost:9000 G5GJRH51R2HSUWYPGIX5 uxhBC1Yscut3/u81l5L8Yp636ZUk32N4m/gFASuZ
$ ./mc mb localhost:9000/photobucket $ ./mc mb localhost:9000/photobucket
$ ./mc cp ~/Photos... localhost:9000/photobucket $ ./mc cp --recursive ~/Photos localhost:9000/photobucket
Starting minio server: Starting minio server:
Listening on http://127.0.0.1:9000 Listening on http://127.0.0.1:9000

@ -250,14 +250,14 @@ func initServer() *probe.Error {
if runtime.GOOS == "windows" { if runtime.GOOS == "windows" {
Println("\n\tDownload https://dl.minio.io/client/mc/release/" + runtime.GOOS + "-" + runtime.GOARCH + "/mc.exe") Println("\n\tDownload https://dl.minio.io/client/mc/release/" + runtime.GOOS + "-" + runtime.GOARCH + "/mc.exe")
Println("\t$ mc.exe config host add http://localhost:9000 " + conf.Credentials.AccessKeyID + " " + conf.Credentials.SecretAccessKey) Println("\t$ mc.exe config host add http://localhost:9000 " + conf.Credentials.AccessKeyID + " " + conf.Credentials.SecretAccessKey)
Println("\t$ mc.exe mb localhost/photobucket") Println("\t$ mc.exe mb localhost:9000/photobucket")
Println("\t$ mc.exe cp C:\\Photos... localhost/photobucket") Println("\t$ mc.exe cp --recursive C:\\Photos localhost:9000/photobucket")
} else { } else {
Println("\n\t$ wget https://dl.minio.io/client/mc/release/" + runtime.GOOS + "-" + runtime.GOARCH + "/mc") Println("\n\t$ wget https://dl.minio.io/client/mc/release/" + runtime.GOOS + "-" + runtime.GOARCH + "/mc")
Println("\t$ chmod 755 mc") Println("\t$ chmod 755 mc")
Println("\t$ ./mc config host add http://localhost:9000 " + conf.Credentials.AccessKeyID + " " + conf.Credentials.SecretAccessKey) Println("\t$ ./mc config host add http://localhost:9000 " + conf.Credentials.AccessKeyID + " " + conf.Credentials.SecretAccessKey)
Println("\t$ ./mc mb localhost/photobucket") Println("\t$ ./mc mb localhost:9000/photobucket")
Println("\t$ ./mc cp ~/Photos... localhost/photobucket") Println("\t$ ./mc cp --recursive ~/Photos localhost:9000/photobucket")
} }
Println() Println()
return nil return nil

Loading…
Cancel
Save