From c563f6d10350874294468d7c6f23dc5f103791fe Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Thu, 31 Jan 2013 14:01:02 +0100 Subject: [PATCH 1/1] Fix deployment sudo problem. --- fnpdjango/deploy/__init__.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fnpdjango/deploy/__init__.py b/fnpdjango/deploy/__init__.py index 3256584..e5cf30b 100644 --- a/fnpdjango/deploy/__init__.py +++ b/fnpdjango/deploy/__init__.py @@ -107,8 +107,7 @@ class DebianGunicorn(Task): def run(self): print '>>> restart webserver using gunicorn-debian' - with path('/sbin'): - sudo('gunicorn-debian restart %s' % self.name, shell=False) + sudo('gunicorn-debian restart %s' % self.name, shell=False) class Apache(Task): def run(self): @@ -123,8 +122,7 @@ class Supervisord(Task): def run(self): print '>>> supervisord: restart %s' % self.name - with path('/sbin'): - sudo('supervisorctl restart %s' % self.name, shell=False) + sudo('supervisorctl restart %s' % self.name, shell=False) def check_setup(): require('app_path') -- 2.20.1