Fix permission bug when configuring virtualenvwrapper
This commit is contained in:
parent
f584cf7e16
commit
4315799e1d
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ def configure_virtualenvwrapper(c, user, workon_home='/srv/envs', wrapper='/usr/
|
||||||
|
|
||||||
def update(script):
|
def update(script):
|
||||||
script = '{}/{}'.format(home, script)
|
script = '{}/{}'.format(home, script)
|
||||||
if not exists(c, script):
|
if not exists(c, script, use_sudo=True):
|
||||||
c.sudo('touch {}'.format(script))
|
c.sudo('touch {}'.format(script))
|
||||||
c.sudo('chown {}: {}'.format(user, script))
|
c.sudo('chown {}: {}'.format(user, script))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue