Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dirk Dankhoff
ISPConfig 3
Commits
c2419b0e
Commit
c2419b0e
authored
Jun 12, 2015
by
Marius Cramer
Browse files
- prevent failure of update check on debian system (on running dpkg process)
parent
fc0edb2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/lib/classes/cron.d/100-monitor_system_update.inc.php
View file @
c2419b0e
...
...
@@ -82,7 +82,7 @@ class cronjob_monitor_system_update extends cronjob {
* Then test the upgrade.
* if there is any output, then there is a needed update
*/
$aptData
=
shell_exec
(
'apt-get -s -qq dist-upgrade'
);
$aptData
=
shell_exec
(
'
while fuser /var/lib/dpkg/lock >/dev/null 2>&1 ; do sleep 2; done;
apt-get -s -qq dist-upgrade'
);
if
(
$aptData
==
''
)
{
/* There is nothing to update! */
$state
=
'ok'
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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