Commit 928998ba authored by Leigh Stoller's avatar Leigh Stoller

Add some banner sitevars for the APT and Cloud portals.

parent 435e8be0
......@@ -151,6 +151,8 @@ INSERT INTO sitevariables VALUES ('storage/ltdataset/graceperiod',NULL,'180','Ti
INSERT INTO sitevariables VALUES ('storage/ltdataset/maxidle',NULL,'180','Max time (days) from last use before lease is marked expired (0 == unlimited)',0);
INSERT INTO sitevariables VALUES ('general/disk_trim_interval',NULL,'0','If non-zero, minimum interval (seconds) between attempts to TRIM boot disk during disk reloading. Zero disables all TRIM activity. Node must also have non-zero bootdisk_trim attribute.',0);
INSERT INTO sitevariables VALUES ('storage/simultaneous_ro_datasets',NULL,'0','If set, allow simultaneous read-only mounts of datasets',0);
INSERT INTO sitevariables VALUES ('aptlab/message',NULL,'','Message to display at the top of the APT interface',0);
INSERT INTO sitevariables VALUES ('cloudlab/message',NULL,'','Message to display at the top of the CloudLab interface',0);
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
......
#
#
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
my $var = "aptlab/message";
if (!TBSiteVarExists($var)) {
my $desc = "Message to display at the top of the APT interface";
my $defval = "";
DBQueryFatal("INSERT INTO sitevariables VALUES ".
"('$var',NULL,'$defval','$desc',0)");
}
$var = "cloudlab/message";
if (!TBSiteVarExists($var)) {
my $desc = "Message to display at the top of the CloudLab interface";
my $defval = "";
DBQueryFatal("INSERT INTO sitevariables VALUES ".
"('$var',NULL,'$defval','$desc',0)");
}
return 0;
}
1;
# Local Variables:
# mode:perl
# End:
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