From 840a2f30fbe3ed22f6fd8270712d8d1f8c60910c Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 27 May 2019 15:43:36 +0200 Subject: [PATCH] pveceph install: output warnings from apt update, they're relevant Signed-off-by: Thomas Lamprecht --- PVE/CLI/pveceph.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/PVE/CLI/pveceph.pm b/PVE/CLI/pveceph.pm index 3399989b..56b6ba66 100755 --- a/PVE/CLI/pveceph.pm +++ b/PVE/CLI/pveceph.pm @@ -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( -- 2.39.5