From 049d2843b521d15e2f355430d94eb9d2e83311be Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Mon, 29 Apr 2024 20:58:47 +0200 Subject: Import version 1.0.4-cl5.1.0u11 from Cumulus Linux --- debian/libnss-tacplus.postinst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'debian/libnss-tacplus.postinst') diff --git a/debian/libnss-tacplus.postinst b/debian/libnss-tacplus.postinst index 77f16f4..06253d7 100644 --- a/debian/libnss-tacplus.postinst +++ b/debian/libnss-tacplus.postinst @@ -11,8 +11,10 @@ case "$1" in # for this package, and won't break anything else. Do nothing # if tacplus is already present in the passwd line if [ -e "/etc/nsswitch.conf" ]; then - sed -i -e '/tacplus\s/b' \ - -e '/^passwd:/s/compat/tacplus &/' /etc/nsswitch.conf + sed -i -E -e '/tacplus\s/b' \ + -e '/^passwd:/s/(compat|files)/tacplus &/' /etc/nsswitch.conf + sed -i -E -e '/tacplus\s/b' \ + -e '/^group:/s/(compat|files)/tacplus &/' /etc/nsswitch.conf fi ;; -- cgit v1.2.3