We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fd2d98 commit 5c0aa54Copy full SHA for 5c0aa54
mkosi.postinst.chroot
@@ -24,5 +24,5 @@ if [[ -d /etc/pam.d ]]; then
24
fi
25
26
# Get rid of obsolete stuff in the pam stack.
27
-[[ -f /usr/lib/pam.d/system-login ]] && sed --in-place '/pam_shells.so/d' /usr/lib/pam.d/system-login
28
-[[ -f /usr/lib/pam.d/remote ]] && sed --in-place '/pam_securetty.so/d' /usr/lib/pam.d/remote
+find /usr/lib/pam.d/ -mindepth 1 -exec sed --in-place '/pam_shells.so/d' {} \;
+find /usr/lib/pam.d/ -mindepth 1 -exec sed --in-place '/pam_securetty.so/d' {} \;
0 commit comments