Skip to content

Commit

Permalink
Change virtualenv group to virtualenv
Browse files Browse the repository at this point in the history
This allows more granular permissions. Any user can be added to the
virtualenv group that needs access without having permission to
anything else. This was motivated by needing a `celery` user to have
access to the virtualenv.
  • Loading branch information
Julian Andrews committed May 16, 2017
1 parent a5cc359 commit 0a47791
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fusionbox/fabric/django/new.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def upload_source(gitref, directory):
# better. Arguably this is less surprising anyway.
extra_opts_list = ['--copy-dest={}'.format(d) for d in get_src_dir_list()]
# Remove global permissions, set group to www-data
extra_opts_list += ['-g', '--chown=:www-data', '--chmod=o-rwx']
extra_opts_list += ['-g', '--chown=:virtualenv', '--chmod=o-rwx']

rsync_project(
local_dir=local_dir,
Expand Down

0 comments on commit 0a47791

Please sign in to comment.