wcsinstd: use os.system to reload apache

This commit is contained in:
Frédéric Péters 2013-06-12 14:06:57 +02:00
parent 276232022e
commit 509cf1e315
1 changed files with 1 additions and 11 deletions

View File

@ -156,14 +156,4 @@ class DeployInstance(object):
def reload_apache(self):
fd = None
try:
fd = os.popen('sudo -S /etc/init.d/apache2 reload', 'w')
print >> fd, 'plop' # this is not the password
except Exception, e:
pass
if fd:
try:
fd.close()
except IOError:
pass
os.system('sudo -n /etc/init.d/apache2 reload')