Commit bb60745a452f941c81b07d1bcb7dd423c2d5e7c2
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,9 +43,9 @@ session_start(); | ||
43 | $ini = $ini.$_POST['raspberry']." capteur=".$_POST['numero']."-".$_POST['version']." 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 = "cmd.sh"; | 46 | + $cmd = "./cmd.sh"; |
47 | //$retour = system($cmd, $retval); | 47 | //$retour = system($cmd, $retval); |
48 | - shell_exec($cmd); | 48 | + shell_exec( '"./cmd.sh"' ); |
49 | ?> | 49 | ?> |
50 | <div class="alert alert-success" role="alert"> | 50 | <div class="alert alert-success" role="alert"> |
51 | Le capteur a bien été ajouté ! | 51 | Le capteur a bien été ajouté ! |