]> git.proxmox.com Git - pmg-api.git/blame - src/bin/pmgbanner
pmgsync.service: order before postfix@.service
[pmg-api.git] / src / bin / pmgbanner
CommitLineData
1635608e
DM
1#!/usr/bin/perl
2
3use strict;
4use warnings;
5
6use PVE::INotify;
7use PMG::Cluster;
8
9my $nodename = PVE::INotify::nodename();
10my $localip = PMG::Cluster::remote_node_ip($nodename, 1);
11
12my $xline = '-' x 78;
13
14my $banner = '';
15
16if ($localip) {
17 $banner .= <<__EOBANNER;
18
19$xline
20
21Welcome to the Proxmox Mail Gateway. Please use your web browser to
22configure this server - connect to:
23
24 https://${localip}:8006/
25
26$xline
27
28__EOBANNER
29
30}
31
32open(ISSUE, ">/etc/issue");
33
34print ISSUE $banner;
35
36close(ISSUE);
37
38exit (0);