Skip to content
Snippets Groups Projects
Commit af43b6a1 authored by Roman Tsisyk's avatar Roman Tsisyk
Browse files

tarantoolctl: disable user-mode for root

tarantoolctl must not search for configuration in
PWD if started by root
parent 23ca9828
No related branches found
No related tags found
No related merge requests found
......@@ -197,6 +197,10 @@ local function check_cmd(cmd)
end
local function check_user_level()
local uid = os.getenv('UID')
if uid == 0 then
return nil
end
-- local dir configuration
local pwd = os.getenv('PWD')
if pwd ~= nil then
......
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