pve-manager/bin/pvebanner

37 lines
501 B
Plaintext
Raw Normal View History

2011-08-23 07:40:22 +02:00
#!/usr/bin/perl
use strict;
use PVE::INotify;
use PVE::Cluster;
my $nodename = PVE::INotify::nodename();
my $localip = PVE::Cluster::remote_node_ip($nodename, 1);
my $xline = '-' x 78;
2011-08-23 07:40:22 +02:00
my $banner = '';
if ($localip) {
$banner .= <<__EOBANNER;
2011-08-23 07:40:22 +02:00
$xline
Welcome to the Proxmox Virtual Environment. Please use your web browser to
configure this server - connect to:
https://${localip}:8006/
$xline
__EOBANNER
}
open(ISSUE, ">/etc/issue");
print ISSUE $banner;
close(ISSUE);
2011-08-23 07:40:22 +02:00
exit (0);