]> git.proxmox.com Git - pve-manager.git/blame - bin/pvebanner
fix #2890: also detect & renew DNS-only ACME certs
[pve-manager.git] / bin / pvebanner
CommitLineData
aff192e6
DM
1#!/usr/bin/perl
2
3use strict;
4use PVE::INotify;
5use PVE::Cluster;
6
7my $nodename = PVE::INotify::nodename();
8my $localip = PVE::Cluster::remote_node_ip($nodename, 1);
9
9003d6e3 10my $xline = '-' x 78;
aff192e6 11
9003d6e3
DM
12my $banner = '';
13
14if ($localip) {
15 $banner .= <<__EOBANNER;
aff192e6
DM
16
17$xline
18
19Welcome to the Proxmox Virtual Environment. Please use your web browser to
20configure this server - connect to:
21
22 https://${localip}:8006/
23
24$xline
25
26__EOBANNER
27
9003d6e3
DM
28}
29
9003d6e3
DM
30open(ISSUE, ">/etc/issue");
31
32print ISSUE $banner;
33
34close(ISSUE);
35
aff192e6 36exit (0);