optional => 1,
default => 0,
},
+ quiet => {
+ type => 'boolean',
+ description => "Only produces output suitable for logging, omitting progress indicators.",
+ optional => 1,
+ default => 0,
+ },
},
},
returns => {
my $cmd = ['apt-get', 'update'];
+ push @$cmd, '-qq' if $param->{quiet};
+
print "starting apt-get update\n";
PVE::Tools::run_command($cmd);
# We assume that users with subscriptions want informations
# about new packages.
if ($info->{status} eq 'Active') {
- eval { PVE::API2::APT->update_database({ node => $nodename, notify => 1 }); };
+ eval { PVE::API2::APT->update_database({ node => $nodename, notify => 1, quiet => 1 }); };
if (my $err = $@) {
syslog ('err', "update apt database failed: $err");
}