mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-06 03:15:21 +00:00
use validdirectory instead of validdomains
This commit is contained in:
parent
44147b3ac6
commit
7a95afb978
@ -85,15 +85,15 @@ sub check_fields {
|
|||||||
|
|
||||||
return undef if $info->{status} ne 'Active';
|
return undef if $info->{status} ne 'Active';
|
||||||
|
|
||||||
foreach my $f (qw(validdomain productname regdate nextduedate)) {
|
foreach my $f (qw(validdirectory productname regdate nextduedate)) {
|
||||||
if (!$info->{$f}) {
|
if (!$info->{$f}) {
|
||||||
die "Missing field '$f'\n";
|
die "Missing field '$f'\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
my $found;
|
my $found;
|
||||||
foreach my $dom (split(/,/, $info->{validdomain})) {
|
foreach my $hwid (split(/,/, $info->{validdirectory})) {
|
||||||
if ($dom eq $server_id) {
|
if ($hwid eq $server_id) {
|
||||||
$found = 1;
|
$found = 1;
|
||||||
last;
|
last;
|
||||||
}
|
}
|
||||||
@ -193,7 +193,8 @@ sub check_subscription {
|
|||||||
|
|
||||||
my $params = {
|
my $params = {
|
||||||
licensekey => $key,
|
licensekey => $key,
|
||||||
domain => $server_id,
|
dir => $server_id,
|
||||||
|
domain => 'www.proxmox.com',
|
||||||
ip => 'localhost',
|
ip => 'localhost',
|
||||||
check_token => $check_token,
|
check_token => $check_token,
|
||||||
};
|
};
|
||||||
|
6
debian/changelog.Debian
vendored
6
debian/changelog.Debian
vendored
@ -1,3 +1,9 @@
|
|||||||
|
pve-manager (2.0-52) unstable; urgency=low
|
||||||
|
|
||||||
|
* fix Subscription code
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Thu, 29 Mar 2012 09:32:32 +0200
|
||||||
|
|
||||||
pve-manager (2.0-51) unstable; urgency=low
|
pve-manager (2.0-51) unstable; urgency=low
|
||||||
|
|
||||||
* fix bug #55: add Migrate and Stop to context menu
|
* fix bug #55: add Migrate and Stop to context menu
|
||||||
|
@ -2,7 +2,7 @@ RELEASE=2.0
|
|||||||
|
|
||||||
VERSION=2.0
|
VERSION=2.0
|
||||||
PACKAGE=pve-manager
|
PACKAGE=pve-manager
|
||||||
PACKAGERELEASE=51
|
PACKAGERELEASE=52
|
||||||
|
|
||||||
BINDIR=${DESTDIR}/usr/bin
|
BINDIR=${DESTDIR}/usr/bin
|
||||||
PERLLIBDIR=${DESTDIR}/usr/share/perl5
|
PERLLIBDIR=${DESTDIR}/usr/share/perl5
|
||||||
|
Loading…
Reference in New Issue
Block a user