Initiated update-mechanic, minor fixes

This commit is contained in:
2025-06-20 18:06:57 +02:00
parent caa4142aa7
commit 2ac79b66db
6 changed files with 978 additions and 868 deletions

8
check_update.php Normal file
View File

@ -0,0 +1,8 @@
<?php
$repoPath = '/usr/thos';
$updateCount = trim(shell_exec("git -C $repoPath fetch origin && git -C $repoPath rev-list HEAD...origin/main --count"));
echo json_encode([
'updates' => (int)$updateCount,
'upToDate' => $updateCount === '0',
]);