summaryrefslogtreecommitdiffhomepage
path: root/pkg/deb/Makefile.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--pkg/deb/Makefile.go5
-rw-r--r--pkg/deb/Makefile.go1105
-rw-r--r--pkg/deb/Makefile.go175
-rw-r--r--pkg/deb/Makefile.go185
-rw-r--r--pkg/deb/Makefile.go195
5 files changed, 15 insertions, 10 deletions
diff --git a/pkg/deb/Makefile.go b/pkg/deb/Makefile.go
index a5ce1494..2d7d6537 100644
--- a/pkg/deb/Makefile.go
+++ b/pkg/deb/Makefile.go
@@ -36,9 +36,10 @@ The $(MODULE_SUMMARY_go) has been installed.
To check out the sample app, run these commands:
- GOPATH=/usr/share/gocode go build -o /tmp/go-app /usr/share/doc/unit-go/examples/go-app/let-my-people.go
+ GOPATH=/usr/share/gocode go build -o /tmp/go-app /usr/share/doc/unit-$(MODULE_SUFFIX_go)/examples/go-app/let-my-people.go
sudo service unit restart
- sudo service unit loadconfig /usr/share/doc/unit-go/examples/unit.config
+ cd /usr/share/doc/unit-$(MODULE_SUFFIX_go)/examples
+ sudo curl -X PUT --data-binary @unit.config --unix-socket /var/run/control.unit.sock :/config
curl http://localhost:8500/
Online documentation is available at https://unit.nginx.org
diff --git a/pkg/deb/Makefile.go110 b/pkg/deb/Makefile.go110
index 2465b772..863f7c90 100644
--- a/pkg/deb/Makefile.go110
+++ b/pkg/deb/Makefile.go110
@@ -36,9 +36,10 @@ The $(MODULE_SUMMARY_go110) has been installed.
To check out the sample app, run these commands:
- GOPATH=/usr/share/gocode /usr/lib/go-1.10/bin/go build -o /tmp/go1.10-app /usr/share/doc/unit-go1.10/examples/go-app/let-my-people.go
+ GOPATH=/usr/share/gocode /usr/lib/go-1.10/bin/go build -o /tmp/go1.10-app /usr/share/doc/unit-$(MODULE_SUFFIX_go110)/examples/go-app/let-my-people.go
sudo service unit restart
- sudo service unit loadconfig /usr/share/doc/unit-go1.10/examples/unit.config
+ cd /usr/share/doc/unit-$(MODULE_SUFFIX_go110)/examples
+ sudo curl -X PUT --data-binary @unit.config --unix-socket /var/run/control.unit.sock :/config
curl http://localhost:8500/
Online documentation is available at https://unit.nginx.org
diff --git a/pkg/deb/Makefile.go17 b/pkg/deb/Makefile.go17
index 9495e416..201b32b2 100644
--- a/pkg/deb/Makefile.go17
+++ b/pkg/deb/Makefile.go17
@@ -36,9 +36,10 @@ The $(MODULE_SUMMARY_go17) has been installed.
To check out the sample app, run these commands:
- GOPATH=/usr/share/gocode /usr/lib/go-1.7/bin/go build -o /tmp/go1.7-app /usr/share/doc/unit-go1.7/examples/go-app/let-my-people.go
+ GOPATH=/usr/share/gocode /usr/lib/go-1.7/bin/go build -o /tmp/go1.7-app /usr/share/doc/unit-$(MODULE_SUFFIX_go17)/examples/go-app/let-my-people.go
sudo service unit restart
- sudo service unit loadconfig /usr/share/doc/unit-go1.7/examples/unit.config
+ cd /usr/share/doc/unit-$(MODULE_SUFFIX_go17)/examples
+ sudo curl -X PUT --data-binary @unit.config --unix-socket /var/run/control.unit.sock :/config
curl http://localhost:8500/
Online documentation is available at https://unit.nginx.org
diff --git a/pkg/deb/Makefile.go18 b/pkg/deb/Makefile.go18
index 114000a8..70b155d4 100644
--- a/pkg/deb/Makefile.go18
+++ b/pkg/deb/Makefile.go18
@@ -36,9 +36,10 @@ The $(MODULE_SUMMARY_go18) has been installed.
To check out the sample app, run these commands:
- GOPATH=/usr/share/gocode /usr/lib/go-1.8/bin/go build -o /tmp/go1.8-app /usr/share/doc/unit-go1.8/examples/go-app/let-my-people.go
+ GOPATH=/usr/share/gocode /usr/lib/go-1.8/bin/go build -o /tmp/go1.8-app /usr/share/doc/unit-$(MODULE_SUFFIX_go18)/examples/go-app/let-my-people.go
sudo service unit restart
- sudo service unit loadconfig /usr/share/doc/unit-go1.8/examples/unit.config
+ cd /usr/share/doc/unit-$(MODULE_SUFFIX_go18)/examples
+ sudo curl -X PUT --data-binary @unit.config --unix-socket /var/run/control.unit.sock :/config
curl http://localhost:8500/
Online documentation is available at https://unit.nginx.org
diff --git a/pkg/deb/Makefile.go19 b/pkg/deb/Makefile.go19
index f7053274..9ddcc493 100644
--- a/pkg/deb/Makefile.go19
+++ b/pkg/deb/Makefile.go19
@@ -36,9 +36,10 @@ The $(MODULE_SUMMARY_go19) has been installed.
To check out the sample app, run these commands:
- GOPATH=/usr/share/gocode /usr/lib/go-1.9/bin/go build -o /tmp/go1.9-app /usr/share/doc/unit-go1.9/examples/go-app/let-my-people.go
+ GOPATH=/usr/share/gocode /usr/lib/go-1.9/bin/go build -o /tmp/go1.9-app /usr/share/doc/unit-$(MODULE_SUFFIX_go19)/examples/go-app/let-my-people.go
sudo service unit restart
- sudo service unit loadconfig /usr/share/doc/unit-go1.9/examples/unit.config
+ cd /usr/share/doc/unit-$(MODULE_SUFFIX_go19)/examples
+ sudo curl -X PUT --data-binary @unit.config --unix-socket /var/run/control.unit.sock :/config
curl http://localhost:8500/
Online documentation is available at https://unit.nginx.org