diff --git a/fabfile.py b/fabfile.py index b6fbe4c9..094e8ecb 100644 --- a/fabfile.py +++ b/fabfile.py @@ -25,8 +25,8 @@ def deploy(): default_opts='-vzcrSLh', delete=True ) - run('sudo service nginx configtest && sudo service nginx reload') + sudo('service nginx configtest && service nginx reload') def file_permissions(): - run('sudo chown -R %s:%s %s/web' % (env.user, env.group, project_root)) - run('sudo chmod -R 750 %s/web' % project_root) + sudo('chown -R %s:%s %s/web' % (env.user, env.group, project_root)) + sudo('chmod -R 750 %s/web' % project_root)