From ef5cf8ee95af05a66107e30b35557f95ef71da1a Mon Sep 17 00:00:00 2001 From: grouille Date: Wed, 25 Mar 2020 15:41:32 +0100 Subject: [PATCH] Test --- site/add.php | 4 ++-- site/reponse.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/site/add.php b/site/add.php index 7885387..6f95a4e 100644 --- a/site/add.php +++ b/site/add.php @@ -40,10 +40,10 @@ session_start(); { $ini = $nucleo; } - $ini = $ini.$_POST['raspberry']." capteur=".$_POST['numero']." setup=".$setup."\n"; + $ini = $ini.$_POST['raspberry']." capteur=".$_POST['numero']."'".$_POST['version']." setup=".$setup."\n"; file_put_contents('upload/inventaire.ini', $ini); setup($_POST['raspberry']); - $cmd = "ansible-playbook ../Ansible/MainTask.yml -i upload/inventaire.ini"; + $cmd = "./cmd.sh"; $retour = system($cmd, $retval); $message = $message." Retour : ".$retval."---".$retour; ?> diff --git a/site/reponse.php b/site/reponse.php index 2074823..38ccfd3 100644 --- a/site/reponse.php +++ b/site/reponse.php @@ -1,5 +1,5 @@
-
+