Go 1.10.2
This commit is contained in:
parent
084bfe67fd
commit
3104dcbd70
|
@ -3,7 +3,7 @@ language: go
|
||||||
os:
|
os:
|
||||||
- linux
|
- linux
|
||||||
go:
|
go:
|
||||||
- 1.10.1
|
- 1.10.2
|
||||||
script:
|
script:
|
||||||
- gimme --list
|
- gimme --list
|
||||||
- echo $TRAVIS_GO_VERSION
|
- echo $TRAVIS_GO_VERSION
|
||||||
|
@ -169,7 +169,7 @@ deploy:
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
on:
|
on:
|
||||||
repo: jedisct1/dnscrypt-proxy
|
repo: jedisct1/dnscrypt-proxy
|
||||||
condition: "${TRAVIS_GO_VERSION} == 1.10.1"
|
condition: "${TRAVIS_GO_VERSION} == 1.10.2"
|
||||||
tags: true
|
tags: true
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- mkdir -p /tmp/bin /tmp/lib /tmp/include
|
- mkdir -p /tmp/bin /tmp/lib /tmp/include
|
||||||
|
|
|
@ -156,6 +156,9 @@ func (s *systemd) Restart() error {
|
||||||
const systemdScript = `[Unit]
|
const systemdScript = `[Unit]
|
||||||
Description={{.Description}}
|
Description={{.Description}}
|
||||||
ConditionFileIsExecutable={{.Path|cmdEscape}}
|
ConditionFileIsExecutable={{.Path|cmdEscape}}
|
||||||
|
{{range .UnitAdd}}
|
||||||
|
{{.Key}}={{.Value}}
|
||||||
|
{{end}}
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
StartLimitInterval=5
|
StartLimitInterval=5
|
||||||
|
@ -169,7 +172,13 @@ ExecStart={{.Path|cmdEscape}}{{range .Arguments}} {{.|cmd}}{{end}}
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=120
|
RestartSec=120
|
||||||
EnvironmentFile=-/etc/sysconfig/{{.Name}}
|
EnvironmentFile=-/etc/sysconfig/{{.Name}}
|
||||||
|
{{range .ServiceAdd}}
|
||||||
|
{{.Key}}={{.Value}}
|
||||||
|
{{end}}
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
{{range .InstallAdd}}
|
||||||
|
{{.Key}}={{.Value}}
|
||||||
|
{{end}}
|
||||||
`
|
`
|
||||||
|
|
Loading…
Reference in New Issue