Skip to content
Snippets Groups Projects
Commit d16588d5 authored by bigbes's avatar bigbes
Browse files

Do not change user if current user is one in default_cfg

parent 360a4aa3
No related branches found
No related tags found
No related merge requests found
......@@ -404,7 +404,7 @@ local function wrapper_cfg(cfg)
-- force these startup options
--
cfg.pid_file = default_cfg.pid_file
cfg.username = default_cfg.username
cfg.username = (os.getenv('USER') == default_cfg.username and default_cfg.username) or nil
if cfg.background == nil then
cfg.background = true
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment