From ec1b87ebbcd576866af9d64468e814176689997b Mon Sep 17 00:00:00 2001 From: Stewart Bennell Date: Fri, 24 Sep 2021 10:29:13 +1000 Subject: [PATCH] Update pvebanner --- scripts/pvebanner | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/scripts/pvebanner b/scripts/pvebanner index 41ef9bc..bcdfb65 100644 --- a/scripts/pvebanner +++ b/scripts/pvebanner @@ -3,35 +3,35 @@ use strict; use PVE::INotify; use PVE::Cluster; +use Sys::Hostname; my $nodename = PVE::INotify::nodename(); my $localip = PVE::Cluster::remote_node_ip($nodename, 1); -my $lastupdate = DateTime->now; -my $xline = '-' x 78; +#my $lastupdate = `date +%m/%d/%Y" "%l:%M:%S" "%p`; +my $year = `date +%Y`; +my $hostname = hostname; +my $xline = '*' x 78; my $banner = ''; if ($localip) { $banner .= <<__EOBANNER; - -$xline -888888b. 888 888 8888888 88888888888 -888 "88b 888 888 888 888 -888 .88P 888 888 888 888 -8888888K. .d88b. 88888b. 88888b. .d88b. 888 888 888 888 -888 "Y88b d8P Y8b 888 "88b 888 "88b d8P Y8b 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 -8888888P" "Y8888 888 888 888 888 "Y8888 888 888 8888888 888 - www.bennellit.com.au 2020 -$xline - Welcome to the Bennell IT Virtual Environment. - Please use your web browser to configure this server - connect to: - - https://${localip}:8006/ - Lastupdate: $lastupdate $xline +888888b. 888 888 8888888 88888888888 +888 "88b 888 888 888 888 +888 .88P 888 888 888 888 +8888888K. .d88b. 88888b. 88888b. .d88b. 888 888 888 888 +888 "Y88b d8P Y8b 888 "88b 888 "88b d8P Y8b 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 +8888888P" "Y8888 888 888 888 888 "Y8888 888 888 8888888 888 + www.bennellit.com.au $year +$xline + Welcome to $hostname Server. + Please use your web browser to configure this server + connect to https://${localip}:8006/ +$xline __EOBANNER }