Commit 1f286f27 authored by Mike Hibler's avatar Mike Hibler
Browse files

Turn on admin check for new (non-elabinelab) installs

parent 13c3a312
......@@ -797,6 +797,19 @@ Phase "database", "Setting up database", sub {
PhaseSkip("Already done");
}
ExecQuietFatal("$MYSQL $DBNAME < $TOP_SRCDIR/sql/sitevars-create.sql");
#
# Make sure admincheck is on for new installs. We leave it off
# for upgrades (and elabinelab) where there are pre-existing user
# and projects where admin isolation requires more work.
#
Phase "admincheck", "Enabling admin isolation sitevar", sub {
if (! $ELABINELAB) {
PhaseSkip("Not enabling for elabinelab");
}
ExecQuietFatal("echo \"update sitevariables set value='1' where ".
" name='general/joinproject/admincheck'\" | ".
"$MYSQL $DBNAME");
};
};
Phase "knowlbase", "Filling knowledge_base_entries table", sub {
my ($exitval, @rows) = ExecQuiet("echo 'select * from " .
......
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