Skip to content

Commit

Permalink
set correct channel for update-check if switching from apt-installed …
Browse files Browse the repository at this point in the history
…stable/testing to nightly

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
  • Loading branch information
d00p committed Jan 26, 2024
1 parent dd76508 commit bcf0818
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Froxlor/Cli/UpdateCommand.php
Expand Up @@ -110,7 +110,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$newversionavail = true;
$output->writeln('<comment>' . $text . '</>');
$result = self::SUCCESS;
} else if ($aucheck < 0 || $aucheck > 1) {
} elseif ($aucheck < 0 || $aucheck > 1) {
if ($input->getOption('integer-return')) {
$output->write(-1);
return self::INVALID;
Expand Down
2 changes: 1 addition & 1 deletion lib/Froxlor/Install/AutoUpdate.php
Expand Up @@ -69,7 +69,7 @@ public static function checkVersion(): int
if (Settings::Get('system.update_channel') == 'testing') {
$channel = '/testing';
} elseif (Settings::Get('system.update_channel') == 'nightly') {
if (empty(Froxlor::BRANDING)) {
if (empty(Froxlor::BRANDING) || substr(Froxlor::BRANDING, 0, 1) == '-') {
$channel = '/nightly.0000000';
} else {
$channel = '/' . substr(Froxlor::BRANDING, 1);
Expand Down

0 comments on commit bcf0818

Please sign in to comment.