Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
pcartas committed Sep 25, 2024
1 parent 84aef71 commit eeaf24a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tljh/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def ensure_user_with_s3(username, s3_bucket_dir, iam_role):
# mkdir s3 bucket directory
subprocess.check_call(["mkdir", "-p", expanduser(f"~{username}/s3bucket")])
subprocess.check_call(["chmod", "o-rwx", expanduser(f"~{username}/s3bucket")])
subprocess.call(["s3fs", s3_bucket_dir, expanduser(f"~{username}/s3bucket"), "-o", f"iam_role={iam_role}", "-o", "allow_other", "-o", "dbglevel=debug", "-o", "url=https://s3.amazonaws.com", "-o", "nonempty"])
subprocess.call(["s3fs", s3_bucket_dir, expanduser(f"~{username}/s3bucket"), "-o", f"iam_role={iam_role}", "-o", "use_cache=/tmp", "-o", "reconnect", "-o", "allow_other", "-o", "dbglevel=debug", "-o", "url=https://s3.amazonaws.com", "-o", "nonempty"])

pm = get_plugin_manager()
pm.hook.tljh_new_user_create(username=username)
Expand Down

0 comments on commit eeaf24a

Please sign in to comment.