Browse Source

- update.php: allow nightly builds in online-update

master
vanhofen 7 years ago
parent
commit
cce3a829a4
  1. 18
      archive-server/update.php

18
archive-server/update.php

@ -75,7 +75,15 @@ if (empty($boxtype_sc) ||empty($boxseries) || empty($boxmodel))
exit(1); exit(1);
} }
$file = $directory . "/" . $image_type . "-" . $boxtype_sc . "-" . $boxmodel . ".txt"; $file = "release/release-" . $boxtype_sc . "-" . $boxmodel . ".txt";
if (file_exists($file))
$result .= file_get_contents($file, true);
$file = "beta/beta-" . $boxtype_sc . "-" . $boxmodel . ".txt";
if (file_exists($file))
$result .= file_get_contents($file, true);
$file = "nightly/nightly-" . $boxtype_sc . "-" . $boxmodel . ".txt";
if (file_exists($file)) if (file_exists($file))
$result .= file_get_contents($file, true); $result .= file_get_contents($file, true);
@ -91,14 +99,6 @@ $file = $directory . "/update-" . $boxtype_sc . "-" . $boxmodel . ".txt";
if (file_exists($file)) if (file_exists($file))
$result .= file_get_contents($file, true); $result .= file_get_contents($file, true);
# allow to switch from beta to release
if (strcmp($image_type, "beta") == 0)
{
$file = "release/release-" . $boxtype_sc . "-" . $boxmodel . ".txt";
if (file_exists($file))
$result .= file_get_contents($file, true);
}
#$file = "plugins/pr-auto-timer.txt"; #$file = "plugins/pr-auto-timer.txt";
#if (file_exists($file)) #if (file_exists($file))
# $result .= file_get_contents($file, true); # $result .= file_get_contents($file, true);

Loading…
Cancel
Save