[pve-devel] r5695 - in pve-manager/trunk: . bin/cron/daily
svn-commits at proxmox.com
svn-commits at proxmox.com
Tue Mar 15 06:13:27 CET 2011
Author: dietmar
Date: 2011-03-15 06:13:27 +0100 (Tue, 15 Mar 2011)
New Revision: 5695
Modified:
pve-manager/trunk/ChangeLog
pve-manager/trunk/bin/cron/daily/pve
Log:
Modified: pve-manager/trunk/ChangeLog
===================================================================
--- pve-manager/trunk/ChangeLog 2011-03-14 09:35:15 UTC (rev 5694)
+++ pve-manager/trunk/ChangeLog 2011-03-15 05:13:27 UTC (rev 5695)
@@ -1,3 +1,7 @@
+2011-03-15 Proxmox Support Team <support at proxmox.com>
+
+ * bin/cron/daily/pve: use http_proxy if configured.
+
2011-03-07 Proxmox Support Team <support at proxmox.com>
* po/nl.po: fix small type in Dutch translation.
Modified: pve-manager/trunk/bin/cron/daily/pve
===================================================================
--- pve-manager/trunk/bin/cron/daily/pve 2011-03-14 09:35:15 UTC (rev 5694)
+++ pve-manager/trunk/bin/cron/daily/pve 2011-03-15 05:13:27 UTC (rev 5695)
@@ -6,8 +6,11 @@
initlog ('pvedailycron', 'daemon');
+my $pvecfg = PVE::Config::read_file('pvecfg');
+my $proxy = ($pvecfg && $pvecfg->{http_proxy}) ? $pvecfg->{http_proxy} : undef;
+
# update appliance info
-if (!PVE::APLInfo::update()) {
+if (!PVE::APLInfo::update($proxy)) {
syslog ('err', "update appliance info failed - see /var/log/pveam.log for details");
}
More information about the pve-devel
mailing list