diff --git a/worker/cmd_provider.go b/worker/cmd_provider.go index 8ce3d70..2274cec 100644 --- a/worker/cmd_provider.go +++ b/worker/cmd_provider.go @@ -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 { diff --git a/worker/exec_post_hook.go b/worker/exec_post_hook.go index 16e5d16..22a9ec6 100644 --- a/worker/exec_post_hook.go +++ b/worker/exec_post_hook.go @@ -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, }