Pas de reboot comme cela.
darcs-hash:20040915154724-41617-b171d2af2e00c549aeb15faf55e482e6faf12571.gz
This commit is contained in:
parent
1bc0860039
commit
e6c51b6705
1 changed files with 3 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue