]> git.proxmox.com Git - pmg-api.git/blobdiff - src/PMG/API2/APT.pm
subscription: switch to rust, add offline key support
[pmg-api.git] / src / PMG / API2 / APT.pm
index d6f050f7d9446beb740e8ae7986316ddf6af0b38..c65fd19cb0300e5a31345322714aeadc8de2d6d5 100644 (file)
@@ -451,8 +451,8 @@ __PACKAGE__->register_method({
        my $pw;
 
        if ($pkgfile->{Origin} eq 'Proxmox' && $pkgfile->{Component} eq 'pmg-enterprise') {
-           my $info = PVE::INotify::read_file('subscription');
-           if ($info->{status} eq 'Active') {
+           my $info = PMG::API2::Subscription::read_etc_subscription();
+           if ($info->{status} eq 'active') {
                $username = $info->{key};
                $pw = PMG::Utils::get_hwaddress();
                $ua->credentials("enterprise.proxmox.com:443", 'pmg-enterprise-repository',