Skip to content

Commit

Permalink
Update deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpetros committed Mar 3, 2024
1 parent 7b164fc commit ebcdb6d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions www/deploy.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
echo hi;
sendStatus(200);
/* $key = $_POST['key'] ?? false; */
/* if ($key == "test") { */
/* shell_exec("cd /var/www && git pull"); */
/* sendStatus(200); */
/* } */
/* sendStatus(403); */
$key = $_POST['key'] ?? false;
if ($key == "test") {
shell_exec("cd /var/www && git pull");
http_response_code(200);
die();
}
http_response_code(403);
die();
?>

0 comments on commit ebcdb6d

Please sign in to comment.