Skip to content

Commit

Permalink
allow first argument to overwrite destinationdirname
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Jan 3, 2012
1 parent 46a1ddf commit 301a7c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mxstartup2mxvipcfg
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 301a7c9

Please sign in to comment.