Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ISPConfig 3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Dirk Dankhoff
ISPConfig 3
Commits
35a93a75
Commit
35a93a75
authored
Sep 14, 2015
by
Marius Cramer
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 'master'
resize openvz-server with ploop enabled See merge request !228
parents
1ec1fc69
da9e9959
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
server/plugins-available/openvz_plugin.inc.php
server/plugins-available/openvz_plugin.inc.php
+5
-0
No files found.
server/plugins-available/openvz_plugin.inc.php
View file @
35a93a75
...
...
@@ -121,6 +121,11 @@ class openvz_plugin {
file_put_contents
(
'/etc/vz/conf/'
.
$veid
.
'.conf'
,
$data
[
'new'
][
'config'
]);
$app
->
log
(
"Writing new configuration for
$veid
"
,
LOGLEVEL_DEBUG
);
//* new diskspace for ploop-containers requieres "vzctl set"
if
(
$data
[
'new'
][
'diskspace'
]
!=
$data
[
'old'
][
'diskspace'
])
{
exec
(
"vzctl set "
.
$veid
.
" --diskspace "
.
$data
[
'new'
][
'diskspace'
]
.
"G --save"
);
}
//* Apply config changes to the VM
if
(
$data
[
'new'
][
'active'
]
==
'y'
&&
$data
[
'old'
][
'active'
]
==
'y'
)
{
exec
(
"vzctl restart
$veid
"
);
...
...
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