Use sudo rather than run
This commit is contained in:
parent
f66778a468
commit
2b92bee36c
6
fabfile.py
vendored
6
fabfile.py
vendored
|
@ -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)
|
||||
|
|
Reference in a new issue