Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
10742ce6
Commit
10742ce6
authored
Nov 09, 2010
by
Leigh B Stoller
Browse files
Add some missing sitevar defs/changes. These dayte back 7-8 months, so
how did we not see them?
parent
1b7ca63a
Changes
1
Hide whitespace changes
Inline
Side-by-side
sql/updates/4/222
0 → 100644
View file @
10742ce6
#
# 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;
Write
Preview
Supports
Markdown
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