Update pvebanner

This commit is contained in:
Stewart Bennell 2021-09-24 10:29:13 +10:00 committed by GitHub
parent f6354ad0b5
commit ec1b87ebbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 19 deletions

View File

@ -3,18 +3,21 @@
use strict; use strict;
use PVE::INotify; use PVE::INotify;
use PVE::Cluster; use PVE::Cluster;
use Sys::Hostname;
my $nodename = PVE::INotify::nodename(); my $nodename = PVE::INotify::nodename();
my $localip = PVE::Cluster::remote_node_ip($nodename, 1); my $localip = PVE::Cluster::remote_node_ip($nodename, 1);
my $lastupdate = DateTime->now; #my $lastupdate = `date +%m/%d/%Y" "%l:%M:%S" "%p`;
my $xline = '-' x 78; my $year = `date +%Y`;
my $hostname = hostname;
my $xline = '*' x 78;
my $banner = ''; my $banner = '';
if ($localip) { if ($localip) {
$banner .= <<__EOBANNER; $banner .= <<__EOBANNER;
$xline $xline
888888b. 888 888 8888888 88888888888 888888b. 888 888 8888888 88888888888
888 "88b 888 888 888 888 888 "88b 888 888 888 888
888 .88P 888 888 888 888 888 .88P 888 888 888 888
@ -23,15 +26,12 @@ $xline
888 888 88888888 888 888 888 888 88888888 888 888 888 888 888 888 88888888 888 888 888 888 88888888 888 888 888 888
888 d88P Y8b. 888 888 888 888 Y8b. 888 888 888 888 888 d88P Y8b. 888 888 888 888 Y8b. 888 888 888 888
8888888P" "Y8888 888 888 888 888 "Y8888 888 888 8888888 888 8888888P" "Y8888 888 888 888 888 "Y8888 888 888 8888888 888
www.bennellit.com.au 2020 www.bennellit.com.au $year
$xline $xline
Welcome to the Bennell IT Virtual Environment. Welcome to $hostname Server.
Please use your web browser to configure this server - connect to: Please use your web browser to configure this server
connect to https://${localip}:8006/
https://${localip}:8006/
Lastupdate: $lastupdate
$xline $xline
__EOBANNER __EOBANNER
} }