[pve-devel] r6125 - pve-manager/pve2/bin
svn-commits at proxmox.com
svn-commits at proxmox.com
Mon Jun 20 12:59:38 CEST 2011
Author: dietmar
Date: 2011-06-20 12:59:37 +0200 (Mon, 20 Jun 2011)
New Revision: 6125
Modified:
pve-manager/pve2/bin/pvebanner
Log:
use remote_node_ip
Modified: pve-manager/pve2/bin/pvebanner
===================================================================
--- pve-manager/pve2/bin/pvebanner 2011-06-20 10:58:18 UTC (rev 6124)
+++ pve-manager/pve2/bin/pvebanner 2011-06-20 10:59:37 UTC (rev 6125)
@@ -1,17 +1,14 @@
#!/usr/bin/perl
use strict;
-use PVE::Config;
+use PVE::INotify;
+use PVE::Cluster;
-my $ip;
-my $ifaces = PVE::Config::read_file ('interfaces');
+my $nodename = PVE::INotify::nodename();
+my $localip = PVE::Cluster::remote_node_ip($nodename, 1);
-if ($ifaces && $ifaces->{vmbr0} && $ifaces->{vmbr0}->{address}) {
- $ip = $ifaces->{vmbr0}->{address};
-}
+exit (0) if !$localip;
-exit (0) if !$ip;
-
my $xline = '-' x 80;
print <<__EOBANNER;
@@ -21,7 +18,7 @@
Welcome to the Proxmox Virtual Environment. Please use your web browser to
configure this server - connect to:
- https://$ip/
+ https://${localip}:8006/
$xline
More information about the pve-devel
mailing list