tbrehm
2012-05-03 258d1024de2f5c4059c666845f7f6e2fda5c0c40
Fixed: FS#2205 - swappages variable is not set in openvz vhost template
2 files modified
2 ■■■■■ changed files
interface/lib/plugins/vm_openvz_plugin.inc.php 1 ●●●● patch | view | raw | blame | history
interface/web/vm/templates/openvz.conf.tpl 1 ●●●● patch | view | raw | blame | history
interface/lib/plugins/vm_openvz_plugin.inc.php
@@ -173,6 +173,7 @@
        $tpl->setVar('numfile',$vm_template['numfile']);
        $tpl->setVar('avnumproc',$vm_template['avnumproc']);
        $tpl->setVar('numiptent',$vm_template['numiptent']);
        $tpl->setVar('swappages',$vm_template['swappages']);
        
        $diskspace = $vm['diskspace']*1048576;
        $diskinodes = $vm['diskspace']*524288;
interface/web/vm/templates/openvz.conf.tpl
@@ -45,5 +45,6 @@
NAMESERVER="{tmpl_var name='nameserver'}"
# alternative meminfo: "pages:256000"
MEMINFO="privvmpages:1"
# SWAPPAGES="{tmpl_var name='swappages'}"
CAPABILITY="{tmpl_var name='capability'}"