Skip to content

Commit

Permalink
check destinationdir..
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Jan 3, 2012
1 parent a9c251b commit 46a1ddf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mxstartup2mxvipcfg
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ while(!($packed_ip=gethostbyname($fullhostname))) {

my $hostip = inet_ntoa($packed_ip);

unless(-d $rundir and -w $rundir) {
print STDERR "can't write to directory $rundir\n";
exit 1;
}

@lines = read_file($configfile);

my ($host, $user, $script, $ip);
Expand Down

0 comments on commit 46a1ddf

Please sign in to comment.