Fix permission bug when configuring virtualenvwrapper

This commit is contained in:
Lance Edgar 2020-02-08 14:37:57 -06:00
parent f584cf7e16
commit 4315799e1d

View file

@ -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))