From 301a7c99b312f13d48c5457e24fbfe400c1c96ea Mon Sep 17 00:00:00 2001 From: Marius Tolzmann Date: Tue, 3 Jan 2012 11:36:40 +0100 Subject: [PATCH] allow first argument to overwrite destinationdirname --- mxstartup2mxvipcfg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mxstartup2mxvipcfg b/mxstartup2mxvipcfg index 6144b1a..7b05a98 100755 --- a/mxstartup2mxvipcfg +++ b/mxstartup2mxvipcfg @@ -23,6 +23,10 @@ while(!($packed_ip=gethostbyname($fullhostname))) { my $hostip = inet_ntoa($packed_ip); +if(defined $ARGV[0]) { + $rundir = $ARGV[0]; +} + unless(-d $rundir and -w $rundir) { print STDERR "can't write to directory $rundir\n"; exit 1;