From afee192d2a77afa1c11d25156d0a44df94e19aed Mon Sep 17 00:00:00 2001 From: A. Täffner <darkalex@firesplash.de> Date: Sat, 23 Jan 2016 07:30:37 -0500 Subject: [PATCH] fixed the cronjob and noticed a bug in ISPC but not able to report as FlySpray is offline --- server/plugins-available/openvz_plugin.inc.php | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/server/plugins-available/openvz_plugin.inc.php b/server/plugins-available/openvz_plugin.inc.php index d6abced..5cc4bf6 100644 --- a/server/plugins-available/openvz_plugin.inc.php +++ b/server/plugins-available/openvz_plugin.inc.php @@ -121,6 +121,11 @@ 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"); -- Gitblit v1.9.1