Pas de reboot comme cela.

darcs-hash:20040915154724-41617-b171d2af2e00c549aeb15faf55e482e6faf12571.gz
This commit is contained in:
pauget 2004-09-15 17:47:24 +02:00
parent 1bc0860039
commit e6c51b6705

View file

@ -437,12 +437,14 @@ cat /tmp/autoexec.log | busybox logger -t "Statut"
self.lock()
for borne in self.bornes :
anim('\treboot de %s' % borne)
status, output = commands.getstatusoutput('ssh -i %s -o StrictHostKeyChecking=no root@%s reboot || true' % ( self.clef, borne ) )
status, output = commands.getstatusoutput('ssh -i %s -o StrictHostKeyChecking=no root@%s wget ftp://138.231.148.1/autoexec.sh' % ( self.clef, borne ) )
if status :
print ERREUR
if self.debug :
print output
self.db.services_to_restart('bornes_wifi', borne)
else :
status, output = commands.getstatusoutput('ssh -i %s -o StrictHostKeyChecking=no root@%s sh /tmp/autoexec.sh || true' % ( self.clef, borne ) )
print OK
self.unlock()