Use sudo rather than run

This commit is contained in:
Oliver Davies 2017-04-18 18:53:37 +01:00
parent f66778a468
commit 2b92bee36c

6
fabfile.py vendored
View file

@ -25,8 +25,8 @@ def deploy():
default_opts='-vzcrSLh', default_opts='-vzcrSLh',
delete=True delete=True
) )
run('sudo service nginx configtest && sudo service nginx reload') sudo('service nginx configtest && service nginx reload')
def file_permissions(): def file_permissions():
run('sudo chown -R %s:%s %s/web' % (env.user, env.group, project_root)) sudo('chown -R %s:%s %s/web' % (env.user, env.group, project_root))
run('sudo chmod -R 750 %s/web' % project_root) sudo('chmod -R 750 %s/web' % project_root)