marsadm: die if IP not detected

This commit is contained in:
Ingvar Gilbert 2012-02-15 20:56:25 +01:00 committed by Thomas Schoebel-Theuer
parent 42ec65952d
commit 2e923f145e

View File

@ -10,7 +10,7 @@ my $mars = "/mars";
my $host = `uname -n` or die "cannot determine my network node name\n"; my $host = `uname -n` or die "cannot determine my network node name\n";
chomp $host; chomp $host;
my $force = 0; my $force = 0;
my $ip = _get_ip(); my $ip = _get_ip() or die "cannot determine my IP address\n";
print "my IP is $ip\n"; print "my IP is $ip\n";
umask 0077; umask 0077;