Commit c180dd70 authored by Leigh B Stoller's avatar Leigh B Stoller

Fix a couple of issues that came up when Hussam added the portal to UKY.

parent 54bdde11
...@@ -39,7 +39,7 @@ sub Install($$$) ...@@ -39,7 +39,7 @@ sub Install($$$)
" nickname='$THB', ". " nickname='$THB', ".
" abbreviation='$THB', ". " abbreviation='$THB', ".
" weburl='$TBBASE', ". " weburl='$TBBASE', ".
" updated=now(),has_datasets=1, ". " updated=now(),has_datasets=1,reservations=1, ".
" portals='emulab'") " portals='emulab'")
or PhaseFail("DB Error"); or PhaseFail("DB Error");
}; };
...@@ -61,6 +61,14 @@ sub Install($$$) ...@@ -61,6 +61,14 @@ sub Install($$$)
"rsync -a geni-lib $TBROOT/opsdir/lib"); "rsync -a geni-lib $TBROOT/opsdir/lib");
}; };
}; };
Phase "mod_fcgid", "Looking for mod_fcgid and installing", sub {
DoneIfPackageInstalled("mod_fcgid");
ExecQuietFatal("pkg install mod_fcgid");
};
Phase "fcgidsock", "Fixing /var/run/fcgidsock", sub {
ExecQuietFatal("chown nobody:nobody /var/run/fcgidsock");
ExecQuietFatal("chmod 770 /var/run/fcgidsock");
};
Phase "rc.conf", "Adding fcgid to apache flags", sub { Phase "rc.conf", "Adding fcgid to apache flags", sub {
PhaseSkip("already added") unless `grep -q PGENI_FCGID $RCCONF`; PhaseSkip("already added") unless `grep -q PGENI_FCGID $RCCONF`;
my $flags = "-DSSL -DPGENI -DPGENI_FCGID"; my $flags = "-DSSL -DPGENI -DPGENI_FCGID";
......
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