]> git.proxmox.com Git - pve-common.git/commit
add postinst hook to fix /etc/aliases whitespace error
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 3 Sep 2019 11:06:18 +0000 (13:06 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 5 Sep 2019 10:35:55 +0000 (12:35 +0200)
commitc5c5812e2325d90c832207862f2340cb7303667b
tree689cfbec344c9e47ba461654d2827421f95ce818
parent9e594bd42eb25cbd1a5fd1ad97e51e68fd3b6f30
add postinst hook to fix /etc/aliases whitespace error

This was wrongly shipped by our ISO since quite a bit (AFAICT, at
least 4.x), so fix it up in a versioned postinst snippet.

Do so by usind sed with the following pattern:
 # sed -E -i -e 's/^www:(\w)/www: \1/' /etc/aliases
proposed by Musee Ullah[0]. It even catches a bit more than exactly
our misstep, may help if one copied this line, or added some other
addresses to this specific aliases entry.

Do this here, in pve-common, as it makes it sligthly simpler to roll
the change out to both, PVE and PMG.

[0]: https://pve.proxmox.com/pipermail/pve-user/2019-September/170998.html

Reported-by: Uwe Sauter <uwe.sauter.de@gmail.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
debian/postinst [new file with mode: 0644]