Skip to content

Commit

Permalink
update RaspAP#43
Browse files Browse the repository at this point in the history
  • Loading branch information
getveloce committed Feb 25, 2017
1 parent 09628c4 commit da2788c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion includes/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,13 @@ function DisplayUpdate(){

$update_output = array();
$update_return_var;
exec("sudo rm -rf".escapeshellarg("/var/www/html"), $update_output, $update_return_var);
$command = "sudo rm -rf".escapeshellarg("/var/www/html");
exec($command, $update_output, $update_return_var);

echo $command;
echo "<br />";
echo $update_return_var;
echo "<br />";
var_dump($update_output);
echo "<br />";

Expand Down

0 comments on commit da2788c

Please sign in to comment.