Commit 35a93a75 authored by Marius Cramer's avatar Marius Cramer
Browse files

Merge branch 'master' into 'master'

resize openvz-server with ploop enabled

See merge request !228
parents 1ec1fc69 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");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment