Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ISPConfig 3
Project overview
Project overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Patrício dos Santos
ISPConfig 3
Commits
da9e9959
Commit
da9e9959
authored
Sep 14, 2015
by
Florian Schaal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resize openvz-server with ploop enabled
parent
1ec1fc69
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 @
da9e9959
...
...
@@ -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