"Improved" the git thing

This commit is contained in:
flash 2015-03-08 04:52:32 +01:00
parent 0e2d2a3b1d
commit 03468c7f11

View file

@ -1,7 +1,7 @@
<?php
if(isset($_REQUEST['pull'])) {
header('Content-Type: text/plain');
print shell_exec('git -C /var/www/flashii.net pull > /var/www/autopull.log');
shell_exec('git -C /var/www/flashii.net pull > /var/www/autopull.log');
print '<h2>Site should be up with the latest commit now.</h2>';
}
?>
<form method="post" action="">