Commit 5ec87cb0 authored by Mike Hibler's avatar Mike Hibler
Browse files

Add a sitevar to control how long we wait to declare a user/proj inactive.

parent 2bfe76f0
......@@ -177,6 +177,7 @@ INSERT INTO sitevariables VALUES ('reload/hwdownaction',NULL,'nothing','What to
INSERT INTO sitevariables VALUES ('general/architecture_priority',NULL,'x86_64,aarch64','Default mapper ordering for multi architecture testbeds.',0);
INSERT INTO sitevariables VALUES ('general/admission_control','0','0','When set, refuse node allocation if reservation admission control fails.',0);
INSERT INTO sitevariables VALUES ('general/cnet_firewalls','0','0','When set, control network firewalls are supported via control network vlans.',0);
INSERT INTO sitevariables VALUES ('general/export_active',NULL,'0','Stop exporting shared user and project directories when they have been inactive for this number of days or longer (0==do not inactivate).',0);
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
......
#
# Add sitevariable that controls exports_setup inactivity
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
DBQueryFatal("INSERT INTO `sitevariables` VALUES ".
"('general/export_active',NULL,'0',".
"'Stop exporting shared user and project directories when ".
"they have been inactive for this number of days or longer ".
"(0==do not inactivate).',0)")
if (!TBSiteVarExists("general/export_active"));
return 0;
}
1;
# Local Variables:
# mode:perl
# End:
Supports Markdown
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