Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
4b59ea39
Commit
4b59ea39
authored
Mar 29, 2012
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use /etc/subscription to store subscription key
parent
cdf13992
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
3 deletions
+21
-3
Subscription.pm
PVE/API2/Subscription.pm
+12
-2
changelog.Debian
debian/changelog.Debian
+8
-0
defines.mk
defines.mk
+1
-1
No files found.
PVE/API2/Subscription.pm
View file @
4b59ea39
...
...
@@ -24,7 +24,7 @@ use PVE::RESTHandler;
use
base
qw(PVE::RESTHandler)
;
PVE::INotify::
register_file
('
subscription
',
"
/etc/
pve-
subscription
",
PVE::INotify::
register_file
('
subscription
',
"
/etc/subscription
",
\&
read_etc_pve_subscription
,
\&
write_etc_pve_subscription
);
...
...
@@ -191,6 +191,9 @@ sub check_subscription {
my
$check_token
=
time
()
.
md5_hex
(
rand
(
8999999999
)
+
1000000000
)
.
$key
;
my
$dccfg
=
PVE::Cluster::
cfs_read_file
('
datacenter.cfg
');
my
$proxy
=
$dccfg
->
{
http_proxy
};
my
$params
=
{
licensekey
=>
$key
,
dir
=>
$server_id
,
...
...
@@ -209,7 +212,14 @@ sub check_subscription {
$req
->
header
('
Content-Length
'
=>
length
(
$content
));
$req
->
content
(
$content
);
my
$ua
=
LWP::
UserAgent
->
new
(
protocols_allowed
=>
[
'
http
',
'
https
'
],
timeout
=>
30
);
my
$ua
=
LWP::
UserAgent
->
new
(
protocols_allowed
=>
['
http
'],
timeout
=>
30
);
if
(
$proxy
)
{
$ua
->
proxy
(['
http
'],
$proxy
);
}
else
{
$ua
->
env_proxy
;
}
my
$response
=
$ua
->
request
(
$req
);
my
$code
=
$response
->
code
;
...
...
debian/changelog.Debian
View file @
4b59ea39
pve-manager (2.0-54) unstable; urgency=low
* use /etc/subscription to store subscription key
* use http_proxy settings for subscription updates
-- Proxmox Support Team <support@proxmox.com> Thu, 29 Mar 2012 11:13:35 +0200
pve-manager (2.0-53) unstable; urgency=low
* fix bug #117: automatically add domain to hostname when creating
...
...
defines.mk
View file @
4b59ea39
...
...
@@ -2,7 +2,7 @@ RELEASE=2.0
VERSION=2.0
PACKAGE=pve-manager
PACKAGERELEASE=5
3
PACKAGERELEASE=5
4
BINDIR=${DESTDIR}/usr/bin
PERLLIBDIR=${DESTDIR}/usr/share/perl5
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment