Fix permission bug when configuring virtualenvwrapper
This commit is contained in:
parent
f584cf7e16
commit
4315799e1d
|
@ -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…
Reference in a new issue