<?php
{
$output = shell_exec("cd /var/www/html/; git pull origin master;");
echo "<pre>$output</pre>";
}
die("done " . mktime());
?>
Last active
August 29, 2015 14:03
-
-
Save patriciogonzalezvivo/f64cc1e58d0a3e1d0b54 to your computer and use it in GitHub Desktop.
Highly insecure way to auto update a repo in a website using WebHooks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment