summaryrefslogtreecommitdiff
path: root/fml/libexec
diff options
context:
space:
mode:
authorfukachan <fukachan>2001-01-21 07:33:48 +0000
committerfukachan <fukachan>2001-01-21 07:33:48 +0000
commit1814de0f552923cd6cd6aef2d9682b9f0970052b (patch)
treeb9918e9bdbfb63150e45384da98dbd1ffe4dd868 /fml/libexec
parent04bd5ba6c164f7a006c00bed343b0a63ffb38394 (diff)
downloadfml8-1814de0f552923cd6cd6aef2d9682b9f0970052b.tar.gz
fml8-1814de0f552923cd6cd6aef2d9682b9f0970052b.tar.bz2
fml8-1814de0f552923cd6cd6aef2d9682b9f0970052b.zip
export ml_home_dir from fmlwrapper to libexec/fml
Diffstat (limited to 'fml/libexec')
-rwxr-xr-xfml/libexec/fmlwrapper4
1 files changed, 4 insertions, 0 deletions
diff --git a/fml/libexec/fmlwrapper b/fml/libexec/fmlwrapper
index 7cbbb504..5facd77b 100755
--- a/fml/libexec/fmlwrapper
+++ b/fml/libexec/fmlwrapper
@@ -55,12 +55,14 @@ sub Bootstrap
my @cf = ();
my %options = ();
my $my_default_config = '';
+ my $ml_home_dir = ''; # e.g. /var/spool/ml/elena
GetOptions(\%options,
qw(ctladdr! debug! params=s -c=s)
);
for (@ARGV) {
if (-d $_) {
+ $ml_home_dir = $_;
push(@cf, "$_/config.cf") if -f "$_/config.cf";
}
elsif (-f $_) {
@@ -95,8 +97,10 @@ sub Bootstrap
{
cf_list => \@cf,
myname => $myname,
+ ml_home_dir => $ml_home_dir,
options => \%options,
});
+
}