mirror of
https://github.com/schoebel/mars
synced 2025-04-27 05:38:13 +00:00
marsadm: die if IP not detected
This commit is contained in:
parent
42ec65952d
commit
2e923f145e
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user