]> git.proxmox.com Git - proxmox-backup.git/commit
add login banner service
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 6 Feb 2020 21:08:07 +0000 (22:08 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 6 Feb 2020 21:19:22 +0000 (22:19 +0100)
commit274b0c7bb7f02340b9bf3d645c6ec881ab44dddd
treebf455e5f55671621ab7ad85c104f4e99a78826b3
parentba050e3788aa7b0f0fe4f3a0a2968f1849f70b2d
add login banner service

Modeled after the one from PVE, but using rust instead of perl for
resolving the nodename and writing to /etc/issue

Behavior differs a bit. We write all non-loopback addresses to this
file, as the gui accepts connections from them all, so limiting it to
the first one is not really sensible.
Further an error to resolve, or only getting loopback addresses won't
write out an empty /etc/issue file, but a note about the error at the
place where the address would be displayed.

Named it "pbsbanner", not "proxmox-backup-banner" as it's rather an
internal tool anyway and mirrors pvebanner, pmgbanner

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile
debian/proxmox-backup-server.install
etc/Makefile
etc/pbsbanner.service [new file with mode: 0644]
src/bin/pbsbanner.rs [new file with mode: 0644]