Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
ISPConfig 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Manoa Ratefiarison
ISPConfig 3
Commits
8f069999
Commit
8f069999
authored
5 years ago
by
Ales Seifert
Browse files
Options
Downloads
Patches
Plain Diff
added update status check for Redhat based distros
parent
b92c60a8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
server/lib/classes/cron.d/100-monitor_system_update.inc.php
+23
-1
23 additions, 1 deletion
server/lib/classes/cron.d/100-monitor_system_update.inc.php
with
23 additions
and
1 deletion
server/lib/classes/cron.d/100-monitor_system_update.inc.php
+
23
−
1
View file @
8f069999
...
@@ -159,7 +159,29 @@ class cronjob_monitor_system_update extends cronjob {
...
@@ -159,7 +159,29 @@ class cronjob_monitor_system_update extends cronjob {
* Fetch the output
* Fetch the output
*/
*/
$data
[
'output'
]
=
shell_exec
(
'zypper lu'
);
$data
[
'output'
]
=
shell_exec
(
'zypper lu'
);
}
else
{
}
elseif
(
file_exists
(
'/etc/redhat-release'
))
{
/*
* update and find the upgrade.
* if there is any output, then there is a needed update
*/
$aptData
=
shell_exec
(
'yum -q list updates'
);
if
(
$aptData
==
''
)
{
/* There is nothing to update! */
$state
=
'ok'
;
}
else
{
/*
* There is something to update! this is in most cases not critical, so we can
* do a system-update once a month or so...
*/
$state
=
'info'
;
}
/*
* Fetch the output
*/
$data
[
'output'
]
=
shell_exec
(
'yum -q list updates'
);
}
else
{
/*
/*
* It is not Debian/Ubuntu, so there is no data and no state
* It is not Debian/Ubuntu, so there is no data and no state
*
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment