Permalink
Browse files

fix that bootstrap and buildout are ran with prod_user

  • Loading branch information...
1 parent b7fed42 commit 01522fb57922618506966590e190c83eb19ebfad @zupo zupo committed Dec 23, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 niteoweb/fabfile/project.py
@@ -84,7 +84,7 @@ def prepare_buildout(prod_user=None, python_version=None, production_cfg=None):
'virtualenv -p python%(python_version)s --no-site-packages ./' % opts,
user=opts['prod_user']
)
- sudo('bin/python bootstrap.py -c %(production_cfg)s' % opts, opts['prod_user'])
+ sudo('bin/python bootstrap.py -c %(production_cfg)s' % opts, user=opts['prod_user'])
def run_buildout(prod_user=None, production_cfg=None):
@@ -97,7 +97,7 @@ def run_buildout(prod_user=None, production_cfg=None):
)
with cd('/home/%(prod_user)s' % opts):
- sudo('bin/buildout -c %(production_cfg)s' % opts, opts['prod_user'])
+ sudo('bin/buildout -c %(production_cfg)s' % opts, user=opts['prod_user'])
# allow everyone in group `projects` to use what you have just put inside
# the egg cache

0 comments on commit 01522fb

Please sign in to comment.