diff --git a/site/add.php b/site/add.php index 767f084..15d0e1b 100644 --- a/site/add.php +++ b/site/add.php @@ -43,9 +43,9 @@ session_start(); $ini = $ini.$_POST['raspberry']." capteur=".$_POST['numero']."-".$_POST['version']." setup=".$setup."\n"; file_put_contents('upload/inventaire.ini', $ini); setup($_POST['raspberry']); - $cmd = "cmd.sh"; + $cmd = "./cmd.sh"; //$retour = system($cmd, $retval); - shell_exec($cmd); + shell_exec( '"./cmd.sh"' ); ?>