This commit is contained in:
Steffen Lange 2020-04-25 23:23:07 +02:00
parent 649b52b9d6
commit 50e903cd93

14
modules/Borg.php Normal file
View file

@ -0,0 +1,14 @@
<?php
class Borg extends PatchBase {
function __construct() {
parent::__construct('Borg Collective', 'BorgBackup', 'https://www.borgbackup.org/releases/');
}
function check() : bool {
if ($this->fetch('https://api.github.com/repos/borgbackup/borg/releases/latest', true))
return $this->parse_json('tag_name');
return false;
}
}
?>