Skip to content

Commit

Permalink
feat(worker): TUNASYNC_LOG_DIR environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
bigeagle committed Dec 18, 2016
1 parent d5a4384 commit 939abae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions worker/cmd_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ func (p *cmdProvider) Start() error {
"TUNASYNC_MIRROR_NAME": p.Name(),
"TUNASYNC_WORKING_DIR": p.WorkingDir(),
"TUNASYNC_UPSTREAM_URL": p.upstreamURL,
"TUNASYNC_LOG_DIR": p.LogDir(),
"TUNASYNC_LOG_FILE": p.LogFile(),
}
for k, v := range p.env {
Expand Down
1 change: 1 addition & 0 deletions worker/exec_post_hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ func (h *execPostHook) Do() error {
"TUNASYNC_MIRROR_NAME": p.Name(),
"TUNASYNC_WORKING_DIR": p.WorkingDir(),
"TUNASYNC_UPSTREAM_URL": p.Upstream(),
"TUNASYNC_LOG_DIR": p.LogDir(),
"TUNASYNC_LOG_FILE": p.LogFile(),
"TUNASYNC_JOB_EXIT_STATUS": exitStatus,
}
Expand Down

0 comments on commit 939abae

Please sign in to comment.