Commit 3ee1a4b2 authored by Lionel VEST's avatar Lionel VEST
Browse files

*

parent 585fefa9
......@@ -14,7 +14,7 @@ function read($connection,$input)
}
else if ($input->body->action == 'convert_to_zip')
{
exec("LC_ALL=fr_FR.UTF-8 export HOME=/srv/api/tmp/" . $input->db . " && cd '/srv/files/demo@demoptimus.fr/==DOSSIERS==/' && zip -r '/srv/files/demo@demoptimus.fr/==DOSSIERS==/test.zip' '/srv/files/demo@demoptimus.fr/==DOSSIERS==/test' '/srv/files/demo@demoptimus.fr/==DOSSIERS==/test2' 2>&1",$output);
exec("LC_ALL=fr_FR.UTF-8 export HOME=/srv/api/tmp/" . $input->db . " && cd '/srv/files/demo@demoptimus.fr/==DOSSIERS==/'; zip -r '/srv/files/demo@demoptimus.fr/==DOSSIERS==/test.zip' '/srv/files/demo@demoptimus.fr/==DOSSIERS==/test' '/srv/files/demo@demoptimus.fr/==DOSSIERS==/test2' 2>&1",$output);
if (is_file('/srv/files/demo@demoptimus.fr/==DOSSIERS==/test.zip'))
return array("code" => 200, "message" => "Conversion effectuée avec succès");
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment