Commit b6b31ec4 authored by Robert Ricci's avatar Robert Ricci
Browse files

Add loading of the database-fill-supplemental.sql into the DB.

Fix a bug with $LOGFACIL .
parent 7c40e385
......@@ -27,6 +27,8 @@ my $DBNAME = "@TBDBNAME@";
my $OURDOMAIN = '@OURDOMAIN@';
my $LOGFACIL = '@TBLOGFACIL@';
my $USERNODE = '@USERNODE@';
my $FSNODE = '@FSNODE@';
my $BOSSNODE = '@BOSSNODE@';
......@@ -384,6 +386,18 @@ Phase "database", "Setting up database", sub {
}
ExecQuietFatal("$MYSQL $DBNAME < $TOP_SRCDIR/sql/database-fill.sql");
};
Phase "sdbdata", "Filling tables with supplemental data", sub {
my ($exitval, @rows) = ExecQuiet("echo 'select * from " .
"os_info' | $MYSQL -s $DBNAME");
if ($exitval) {
PhaseFail("Error running query");
}
if (scalar @rows) {
PhaseSkip("Already done");
}
ExecQuietFatal("$MYSQL $DBNAME < " .
"$TOP_SRCDIR/sql/database-fill-supplemental.sql");
};
Phase "sitevars", "Setting sitevars to default values", sub {
my ($exitval, @rows) = ExecQuiet("echo 'select * from " .
"sitevariables' | $MYSQL -s $DBNAME");
......
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