From c5f8cfe848f1e466d6ba95e01ea7ff1a78da7c16 Mon Sep 17 00:00:00 2001 From: Alessandro Ratti Date: Wed, 5 Oct 2022 15:34:50 +0000 Subject: [PATCH] attempt to fix LP: #1991812 --- debian/frr.postinst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debian/frr.postinst b/debian/frr.postinst index 382edcb..79a2f96 100644 --- a/debian/frr.postinst +++ b/debian/frr.postinst @@ -50,6 +50,7 @@ done # fix logging for Ubuntu, which does not run rsyslog as root (LP: #1958162), # and upgrades from quagga (what the block above used to do also for /var/log) +if (getent passwd syslog > /dev/null);then # frr user was created above, this really shouldn't fail frruid=`getent passwd frr | cut -d : -f 3` frrgid=`getent group frr | cut -d : -f 3` @@ -70,6 +71,7 @@ find \ chmod o-rwx "$filename" fi done +fi # fix misconfigured vtysh.conf & frr.conf ownership caused by config save # mishandling in earlier FRR (and Quagga) versions -- 2.25.1