Skip to content

Commit

Permalink
updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jpillora committed Mar 14, 2016
1 parent a148772 commit ff5645d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ curl https://i.jpillora.com/<user>/<repo>@<release>! | bash

*Or you can use* `wget -qO- <url> | bash`

:warning: I promise [my instance of `installer`](https://i.jpillora.com/) is simply a copy of this repo. Nevertheless, you're right to be wary of piping shell scripts from unknown servers, you can host your own server [here](#host-your-own). Or just leave off `| bash` and checkout the script yourself.

**Path API**

* `user` Github user (defaults to @jpillora, customizable if you [host your own](#host-your-own))
Expand All @@ -29,6 +27,10 @@ curl https://i.jpillora.com/<user>/<repo>@<release>! | bash
* `type=homebrew` is **not** working at the moment – see [Homebrew](#homebrew)
* `?insecure=1` Force `curl`/`wget` to skip certificate checks

## Security

:warning: Although I promise [my instance of `installer`](https://i.jpillora.com/) is simply a copy of this repo - you're right to be wary of piping shell scripts from unknown servers, so you can host your own server [here](#host-your-own) or just leave off `| bash` and checkout the script yourself.

## Examples

* https://i.jpillora.com/serve
Expand Down
11 changes: 7 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,14 @@ var c = &struct {
User: "jpillora",
}

var VERSION = "0.0.0-src"

func main() {
opts.Parse(&c)
port := strconv.Itoa(c.Port)
log.Printf("Listening on %s...", port)
http.ListenAndServe(":"+port, http.HandlerFunc(install))
opts.New(&c).Repo("github.com/jpillora/installer").Version(VERSION).Parse()
log.Printf("Default user is '%s' and listening on %d...", c.User, c.Port)
if err := http.ListenAndServe(":"+strconv.Itoa(c.Port), http.HandlerFunc(install)); err != nil {
log.Fatal(err)
}
}

var (
Expand Down

0 comments on commit ff5645d

Please sign in to comment.