Commit 69d208f4 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Minor addition to cvssupport code in previous revision; must add a line

in the exports file to export the local filesystem to localhost.
parent b0ad47ed
......@@ -585,6 +585,24 @@ Phase "exports", "Setting up exports", sub {
"-maproot=root -ro");
}
#
# Add localhost mount to proj/cvsrepos.
#
if ($CVSSUPPORT) {
my $pdir;
my $dfout = `df /proj | fgrep '/dev'`;
if ($?) {
PhaseFail("'df /proj' failed!");
}
if ($dfout =~ /\s+([\/\w]*)$/) {
$pdir = $1;
}
else {
PhaseFail("Could not determine where /proj is mounted!");
}
push(@exports_lines, "$pdir\tlocalhost -alldirs");
}
#
# Put them in exports.head, and copy that to /etc/exports
#
......
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