Commit aea8a3a1 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Add per instance cert/key slots.

parent 4bbf43d0
......@@ -190,6 +190,8 @@ CREATE TABLE `apt_instances` (
`servername` tinytext,
`monitor_pid` int(11) default '0',
`logfileid` varchar(40) default NULL,
`cert` mediumtext,
`privkey` mediumtext,
`rspec` mediumtext,
`params` mediumtext,
`manifest` mediumtext,
......
#
# APT stuff
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("apt_instances", "cert")) {
DBQueryFatal("alter table apt_instances add ".
" `cert` mediumtext after logfileid");
}
if (!DBSlotExists("apt_instances", "privkey")) {
DBQueryFatal("alter table apt_instances add ".
" `privkey` mediumtext after cert");
}
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