Commit bb60745a452f941c81b07d1bcb7dd423c2d5e7c2

Authored by grouille
1 parent aee7c1d9

Test

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
site/add.php
... ... @@ -43,9 +43,9 @@ session_start();
43 43 $ini = $ini.$_POST['raspberry']." capteur=".$_POST['numero']."-".$_POST['version']." setup=".$setup."\n";
44 44 file_put_contents('upload/inventaire.ini', $ini);
45 45 setup($_POST['raspberry']);
46   - $cmd = "cmd.sh";
  46 + $cmd = "./cmd.sh";
47 47 //$retour = system($cmd, $retval);
48   - shell_exec($cmd);
  48 + shell_exec( '"./cmd.sh"' );
49 49 ?>
50 50 <div class="alert alert-success" role="alert">
51 51 Le capteur a bien été ajouté !
... ...