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
Container Registry
Model registry
Operate
Environments
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
Helmo
ISPConfig 3
Commits
8e5a73ef
Commit
8e5a73ef
authored
4 years ago
by
Thom
Browse files
Options
Downloads
Patches
Plain Diff
Change remote upgrade to apt-get (#4397)
parent
803c134e
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/mods-available/remoteaction_core_module.inc.php
+6
-5
6 additions, 5 deletions
server/mods-available/remoteaction_core_module.inc.php
with
6 additions
and
5 deletions
server/mods-available/remoteaction_core_module.inc.php
+
6
−
5
View file @
8e5a73ef
...
...
@@ -172,16 +172,17 @@ class remoteaction_core_module {
/*
* Do the update
*/
exec
(
"aptitude update"
);
exec
(
"aptitude safe-upgrade -y"
);
//Guess this is not wanted here?
//exec("aptitude update");
//exec("aptitude safe-upgrade -y");
//TODO : change this when distribution information has been integrated into server record
if
(
file_exists
(
'/etc/gentoo-release'
))
{
exec
(
"glsa-check -f --nocolor affected"
);
}
else
{
exec
(
"apt
itude
update"
);
exec
(
"apt
itude safe-
upgrade
-y
"
);
exec
(
"apt
-get
update"
);
exec
(
"apt
-get -y
upgrade"
);
}
/*
...
...
@@ -192,7 +193,7 @@ class remoteaction_core_module {
private
function
_doIspCUpdate
(
$action
)
{
global
$app
;
// Ensure that this code is not executed twice as this would cause a loop in case of a failure
$this
->
_actionDone
(
$action
[
'action_id'
],
'ok'
);
...
...
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