diff --git a/public/pull.php b/public/pull.php index 7791dce..5c094c7 100644 --- a/public/pull.php +++ b/public/pull.php @@ -12,7 +12,7 @@ if ($hash !== $signature) { error_log('FAILED - payload signature mismatch'); - exit(); + exit("wrong signature"); } $json = json_decode($payload, true); @@ -21,11 +21,13 @@ if (json_last_error() !== JSON_ERROR_NONE) { error_log('FAILED - json decode - '. json_last_error()); - exit(); + exit(json_last_error()); } if(strcmp($json['object_kind'], 'push') == 0) { $result = shell_exec("cd /var/www/lk && git reset --hard HEAD && git pull"); file_put_contents("/var/www/lk/storage/logs/temp_exec", print_r($result, 1)); -} \ No newline at end of file + echo "
$result
"; +} +