]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
pveceph install: output warnings from apt update, they're relevant
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 27 May 2019 13:43:36 +0000 (15:43 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 27 May 2019 14:17:29 +0000 (16:17 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/CLI/pveceph.pm

index 3399989b87563e864b0c3e7b9af9b1da22ab6b04..56b6ba667b463bba8ee4726c6adce5f84757d6cc 100755 (executable)
@@ -94,8 +94,6 @@ __PACKAGE__->register_method ({
 
        my $cephver = $param->{version} || 'luminous';
 
-       local $ENV{DEBIAN_FRONTEND} = 'noninteractive';
-
        if ($cephver eq 'luminous') {
            PVE::Tools::file_set_contents("/etc/apt/sources.list.d/ceph.list",
                "deb http://download.proxmox.com/debian/ceph-luminous stretch main\n");
@@ -103,8 +101,9 @@ __PACKAGE__->register_method ({
            die "not implemented ceph version: $cephver";
        }
 
+       local $ENV{DEBIAN_FRONTEND} = 'noninteractive';
        print "update available package list\n";
-       eval { run_command(['apt-get', '-q', 'update'], outfunc => sub {}, errfunc => sub {}); };
+       eval { run_command(['apt-get', '-q', 'update'], outfunc => sub {}, errfunc => sub { print STDERR "$_[0]\n" }) };
 
        my @apt_install = qw(apt-get --no-install-recommends -o Dpkg::Options::=--force-confnew install --);
        my @ceph_packages = qw(