commit f9de7ffa7bc2e42b98912b06c6bdc98a2e43385a
parent 892dbb95c802609b69f8a29d2b01004a61c5eadf
Author: Jan Pobrislo <ccx@webprojekty.cz>
Date: Tue, 26 Jul 2022 21:51:52 +0200
Fix sed as a filter usage
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/postinstall.aat b/postinstall.aat
@@ -96,7 +96,7 @@ CN # Managed by /usr/src/core-system
|line_append_file("sshd:x", ":22:", "", "^[^:]*:[^:]*")
/etc/passwd f +
-!f sed -iEe 's|^(root:.*:)[^:]|/bin/zsh|' "$fname"
+!f sed -Ee 's|^(root:.*:)[^:]|/bin/zsh|'
|passwd_user("sshd:x:22:22:server privilege separation,,,:/home/sshd:/sbin/nologin")
|shadow_user("sshd:!:10000::::::")
diff --git a/postinstall.fileset b/postinstall.fileset
@@ -45,7 +45,7 @@ CN # Managed by /usr/src/core-system
fi
/etc/passwd f +
-!f sed -iEe 's|^(root:.*:)[^:]|/bin/zsh|' "$fname"
+!f sed -Ee 's|^(root:.*:)[^:]|/bin/zsh|'
/etc/passwd f +
!f awk 'BEGIN { FS=OFS=":"; seen=0; line="sshd:x:22:22:server privilege separation,,,:/home/sshd:/sbin/nologin"; split(line, a) }
{ uids[$3] = $0 }