Commit 10742ce6 authored by Leigh B Stoller's avatar Leigh B Stoller

Add some missing sitevar defs/changes. These dayte back 7-8 months, so

how did we not see them?
parent 1b7ca63a
#
# Add missing sitevars.
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
DBQueryFatal("INSERT INTO sitevariables VALUES ".
"('protogeni/max_components','-1','-1', ".
" 'Maximum number of components that can be allocated.".
" -1 indicates any number of components can be allocated.', ".
" 0")
if (!TBSiteVarExists("protogeni/max_components"));
my $foo = "When set, external users may allocate slivers on your testbed.";
if (TBSiteVarExists("protogeni/max_components")) {
DBQueryFatal("update sitevariables set ".
"description='$foo' ".
"where name='protogeni/max_externalnodes'");
}
else {
DBQueryFatal("INSERT INTO sitevariables VALUES ".
"('protogeni/max_externalnodes',NULL,'1024', ".
" '$foo', 0");
}
return 0;
}
1;
Markdown is supported
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