Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Dirk Dankhoff
ISPConfig 3
Commits
258d1024
Commit
258d1024
authored
May 03, 2012
by
tbrehm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed: FS#2205 - swappages variable is not set in openvz vhost template
parent
cc061e60
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
interface/lib/plugins/vm_openvz_plugin.inc.php
interface/lib/plugins/vm_openvz_plugin.inc.php
+1
-0
interface/web/vm/templates/openvz.conf.tpl
interface/web/vm/templates/openvz.conf.tpl
+1
-0
No files found.
interface/lib/plugins/vm_openvz_plugin.inc.php
View file @
258d1024
...
@@ -173,6 +173,7 @@ class vm_openvz_plugin {
...
@@ -173,6 +173,7 @@ class vm_openvz_plugin {
$tpl
->
setVar
(
'numfile'
,
$vm_template
[
'numfile'
]);
$tpl
->
setVar
(
'numfile'
,
$vm_template
[
'numfile'
]);
$tpl
->
setVar
(
'avnumproc'
,
$vm_template
[
'avnumproc'
]);
$tpl
->
setVar
(
'avnumproc'
,
$vm_template
[
'avnumproc'
]);
$tpl
->
setVar
(
'numiptent'
,
$vm_template
[
'numiptent'
]);
$tpl
->
setVar
(
'numiptent'
,
$vm_template
[
'numiptent'
]);
$tpl
->
setVar
(
'swappages'
,
$vm_template
[
'swappages'
]);
$diskspace
=
$vm
[
'diskspace'
]
*
1048576
;
$diskspace
=
$vm
[
'diskspace'
]
*
1048576
;
$diskinodes
=
$vm
[
'diskspace'
]
*
524288
;
$diskinodes
=
$vm
[
'diskspace'
]
*
524288
;
...
...
interface/web/vm/templates/openvz.conf.tpl
View file @
258d1024
...
@@ -45,5 +45,6 @@ IP_ADDRESS="{tmpl_var name='ip_address'}"
...
@@ -45,5 +45,6 @@ IP_ADDRESS="{tmpl_var name='ip_address'}"
NAMESERVER="
{
tmpl_var
name
=
'nameserver'
}
"
NAMESERVER="
{
tmpl_var
name
=
'nameserver'
}
"
# alternative meminfo: "pages:256000"
# alternative meminfo: "pages:256000"
MEMINFO="privvmpages:1"
MEMINFO="privvmpages:1"
# SWAPPAGES="
{
tmpl_var
name
=
'swappages'
}
"
CAPABILITY="
{
tmpl_var
name
=
'capability'
}
"
CAPABILITY="
{
tmpl_var
name
=
'capability'
}
"
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