Skip to content

Commit

Permalink
Merge pull request #9 from funbox/develop
Browse files Browse the repository at this point in the history
Version 0.7.2
  • Loading branch information
andyone authored Mar 1, 2017
2 parents b79aa98 + fe3ca70 commit 2f15ecf
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ language: go
go:
- 1.6.x
- 1.7.x
- 1.8.x
- tip

branches:
Expand Down
2 changes: 1 addition & 1 deletion cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
// App props
const (
APP = "init-exporter"
VER = "0.7.1"
VER = "0.7.2"
DESC = "Utility for exporting services described by Procfile to init system"
)

Expand Down
5 changes: 4 additions & 1 deletion common/init-exporter.spec
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,11 @@ rm -rf %{buildroot}
###############################################################################

%changelog
* Thu Mar 02 2017 Anton Novojilov <[email protected]> - 0.7.2-0
- [upstart] Fixed bug with setting environment variables

* Thu Feb 23 2017 Anton Novojilov <[email protected]> - 0.7.1-0
- More secure helper output redirection
- [upstart|systemd] More secure helper output redirection

* Wed Feb 22 2017 Anton Novojilov <[email protected]> - 0.7.0-0
- Fixed bug with export to upstart
Expand Down
2 changes: 1 addition & 1 deletion export/export_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ func (s *ExportSuite) TestUpstartExport(c *C) {
c.Assert(service1Helper[4:], DeepEquals,
[]string{
"[[ -r /etc/profile.d/rbenv.sh ]] && source /etc/profile.d/rbenv.sh", "",
"cd /srv/service/service1-dir && exec STAGING=true /bin/echo service1 >>/srv/service/service1-dir/log/service1.log",
"cd /srv/service/service1-dir && exec env STAGING=true /bin/echo service1 >>/srv/service/service1-dir/log/service1.log",
""},
)

Expand Down
2 changes: 1 addition & 1 deletion export/upstart.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const TEMPLATE_UPSTART_HELPER = `#!/bin/bash
[[ -r /etc/profile.d/rbenv.sh ]] && source /etc/profile.d/rbenv.sh
cd {{.Service.Options.WorkingDir}} && exec {{ if .Service.Options.IsEnvSet }}{{.Service.Options.EnvString}} {{ end }}{{.Service.Cmd}}{{ if .Service.Options.IsCustomLogEnabled }} >>{{.Service.Options.FullLogPath}}{{ end }}
cd {{.Service.Options.WorkingDir}} && exec {{ if .Service.Options.IsEnvSet }}env {{.Service.Options.EnvString}} {{ end }}{{.Service.Cmd}}{{ if .Service.Options.IsCustomLogEnabled }} >>{{.Service.Options.FullLogPath}}{{ end }}
`

// TEMPLATE_UPSTART_APP contains default application template
Expand Down

0 comments on commit 2f15ecf

Please sign in to comment.