Commit bb67e856 authored by André Anjos's avatar André Anjos 💬

Merge branch '78_run_db_index_under_non_root_user' into 'master'

Use current user ID if none is given when indexing a database

Closes #78

See merge request !105
parents ba93404c 5d06bbd4
Pipeline #45338 passed with stages
in 5 minutes and 4 seconds
......@@ -177,8 +177,10 @@ def start_db_container(
db_configuration = {"inputs": {}, "channel": set_name}
if uid is not None:
db_configuration["datasets_uid"] = uid
if uid is None:
uid = os.getuid()
db_configuration["datasets_uid"] = uid
if db_root is not None:
db_configuration["datasets_root_path"] = db_root
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment