]> git.pld-linux.org Git - packages/pam.git/commitdiff
- fix sed command grouping
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 23 Dec 2023 08:37:29 +0000 (09:37 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 23 Dec 2023 08:37:29 +0000 (09:37 +0100)
pam.spec

index a333ab97d53af022524d2466a26c7a81f7751df7..2af3026c0d27493f42d7b90019204784fd1ce845 100644 (file)
--- a/pam.spec
+++ b/pam.spec
@@ -419,7 +419,7 @@ if grep -qs pam_tally /etc/pam.d/system-auth; then
        %{__sed} -i -e '/pam_tally/d' /etc/pam.d/system-auth
 fi
 if grep -qs pam_cracklib /etc/pam.d/system-auth; then
-       %{__sed} -i -e '/pam_cracklib/ s/pam_cracklib/pam_pwquality/; s/$/ use_authtok/' /etc/pam.d/system-auth
+       %{__sed} -i -e '/pam_cracklib/ { s/pam_cracklib/pam_pwquality/; s/$/ use_authtok/ }' /etc/pam.d/system-auth
 fi
 
 # removed in 1.1.4
This page took 0.390553 seconds and 4 git commands to generate.