mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-04-29 16:26:57 +00:00
pveupdate - always run check for available updates
This commit is contained in:
parent
26031ab15f
commit
d916c09d2b
@ -42,16 +42,14 @@ if (my $err = $@) {
|
|||||||
syslog ('err', "update appliance info failed - see /var/log/pveam.log for details");
|
syslog ('err', "update appliance info failed - see /var/log/pveam.log for details");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (my $info = PVE::INotify::read_file('subscription')) {
|
my $info = PVE::INotify::read_file('subscription');
|
||||||
# We assume that users with subscriptions want informations
|
# We assume that users with subscriptions want informations
|
||||||
# about new packages.
|
# about new packages.
|
||||||
if ($info->{status} eq 'Active') {
|
my $notify = ($info && $info->{status} eq 'Active') ? 1 : 0;
|
||||||
eval { PVE::API2::APT->update_database({ node => $nodename, notify => 1, quiet => 1 }); };
|
eval { PVE::API2::APT->update_database({ node => $nodename, notify => $notify, quiet => 1 }); };
|
||||||
if (my $err = $@) {
|
if (my $err = $@) {
|
||||||
syslog ('err', "update apt database failed: $err");
|
syslog ('err', "update apt database failed: $err");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
sub cleanup_tasks {
|
sub cleanup_tasks {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user