Skip to content

Commit

Permalink
Skip updateprecheck if version is too old
Browse files Browse the repository at this point in the history
  • Loading branch information
mschlenstedt committed Mar 28, 2024
1 parent e4ff666 commit 6a42e41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions sbin/loxberryupdate.pl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
require HTTP::Request;

# Version of this script
my $scriptversion='3.0.0.2';
my $scriptversion='3.0.1.0';

my $backupdir="/opt/backup.loxberry";
my $update_path = '/tmp/loxberryupdate';
Expand Down Expand Up @@ -271,9 +271,11 @@
LOGINF " Skipping Update Pre-Check $version - too new version.";
next;
}
LOGINF " Running Update Pre-Check script for $version...";
undef $exitcode;

if ( $version <= $currversion ) {
LOGINF " Skipping Update Pre-Check $version - too old version.";
next;
}

$exitcode = exec_perl_script("$updatedir/sbin/loxberryupdate/$updateprecheckprefix$version.pl release=$release logfilename=$logfilename cron=$cron updatedir=$updatedir");
$exitcode = $? >> 8;

Expand Down
File renamed without changes.

0 comments on commit 6a42e41

Please sign in to comment.