]> git.proxmox.com Git - pve-manager-legacy.git/blame - bin/pveam
implement template download
[pve-manager-legacy.git] / bin / pveam
CommitLineData
5910d3b7
DM
1#!/usr/bin/perl -w
2
3use strict;
8d4f53a0 4use PVE::Cluster;
82f9a5d7 5use PVE::APLInfo;
5910d3b7
DM
6
7if (scalar (@ARGV) != 1) {
8 print STDERR "usage: $0 CMD\n";
9 exit (-1);
10}
11
12my $cmd = shift;
13
14if ($cmd eq 'update') {
8d4f53a0 15 my $dccfg = PVE::Cluster::cfs_read_file('datacenter.cfg');
82f9a5d7
DM
16 exit (0) if PVE::APLInfo::update($dccfg->{http_proxy});
17 print STDERR "update failed - see /var/log/pveam.log for details\n";
5910d3b7
DM
18 exit (-1);
19} else {
20 print STDERR "unknown CMD '$cmd'\n";
21 exit (-1);
22}