Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
8c438494
Commit
8c438494
authored
Aug 02, 2013
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
run 'apt-get update' in quiet mode when starting from cron
parent
19938388
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
APT.pm
PVE/API2/APT.pm
+8
-0
pve
bin/cron/daily/pve
+1
-1
No files found.
PVE/API2/APT.pm
View file @
8c438494
...
...
@@ -242,6 +242,12 @@ __PACKAGE__->register_method({
optional
=>
1
,
default
=>
0
,
},
quiet
=>
{
type
=>
'
boolean
',
description
=>
"
Only produces output suitable for logging, omitting progress indicators.
",
optional
=>
1
,
default
=>
0
,
},
},
},
returns
=>
{
...
...
@@ -269,6 +275,8 @@ __PACKAGE__->register_method({
my
$cmd
=
['
apt-get
',
'
update
'];
push
@$cmd
,
'
-qq
'
if
$param
->
{
quiet
};
print
"
starting apt-get update
\n
";
PVE::Tools::
run_command
(
$cmd
);
...
...
bin/cron/daily/pve
View file @
8c438494
...
...
@@ -44,7 +44,7 @@ if (my $info = PVE::INotify::read_file('subscription')) {
# 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
");
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment