Commit ef5cf8ee95af05a66107e30b35557f95ef71da1a

Authored by grouille
1 parent 271d90ac

Test

Showing 2 changed files with 3 additions and 3 deletions   Show diff stats
@@ -40,10 +40,10 @@ session_start(); @@ -40,10 +40,10 @@ session_start();
40 { 40 {
41 $ini = $nucleo; 41 $ini = $nucleo;
42 } 42 }
43 - $ini = $ini.$_POST['raspberry']." capteur=".$_POST['numero']." setup=".$setup."\n"; 43 + $ini = $ini.$_POST['raspberry']." capteur=".$_POST['numero']."'".$_POST['version']." setup=".$setup."\n";
44 file_put_contents('upload/inventaire.ini', $ini); 44 file_put_contents('upload/inventaire.ini', $ini);
45 setup($_POST['raspberry']); 45 setup($_POST['raspberry']);
46 - $cmd = "ansible-playbook ../Ansible/MainTask.yml -i upload/inventaire.ini"; 46 + $cmd = "./cmd.sh";
47 $retour = system($cmd, $retval); 47 $retour = system($cmd, $retval);
48 $message = $message." Retour : ".$retval."---".$retour; 48 $message = $message." Retour : ".$retval."---".$retour;
49 ?> 49 ?>
1 <div class="row"> 1 <div class="row">
2 - <div class="col-4 col-md-4 offset-4 offset-md-4" style="margin-top:60px;"> 2 + <div class="col-4 col-md-4 offset-4 offset-md-4" style="margin-top:70px;">
3 <br/> 3 <br/>
4 <div class="alert <?php echo $color;?>" role="alert"> 4 <div class="alert <?php echo $color;?>" role="alert">
5 <?php echo $message;?> 5 <?php echo $message;?>