From db0f991107102621f0e3922304c4cba8e23bc2d6 Mon Sep 17 00:00:00 2001 From: Dmitry Karpukhin Date: Fri, 16 Jan 2026 11:26:56 +0800 Subject: [PATCH] =?UTF-8?q?=D1=82=D0=B5=D1=81=D1=82=201=20=D0=BE=D0=B1?= =?UTF-8?q?=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D1=87=D0=B8=D0=BA=D0=B0=20=D0=B3?= =?UTF-8?q?=D0=B8=D1=82=D0=BB=D0=B0=D0=B1=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/pull.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public/pull.php b/public/pull.php index e973121..083f2a8 100644 --- a/public/pull.php +++ b/public/pull.php @@ -6,7 +6,7 @@ $hash = hash_hmac('sha256', $payload, $key, false); $signature = $_SERVER['HTTP_X_GITEA_SIGNATURE']?? ''; - +file_put_contents("/var/www/lk/storage/logs/temp_sign", print_r($signature, 1)); // check payload signature against header signature if ($hash !== $signature) { @@ -15,6 +15,7 @@ } $json = json_decode($payload, true); +file_put_contents("/var/www/lk/storage/logs/temp_json", print_r($json, 1)); if (json_last_error() !== JSON_ERROR_NONE) { @@ -24,5 +25,6 @@ if(strcmp($json['object_kind'], 'push') == 0) { - shell_exec("cd /var/www/lk && git reset --hard HEAD && git pull"); + $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