commit ce8cea2c6fc0e68a70642d94ae4d1b8c1649ebd6
parent f5c6ca6c3d5bb0c89be4ff1cc3cc883a5d972907
Author: Jan Pobrislo <ccx@webprojekty.cz>
Date: Tue, 26 Jul 2022 11:25:00 +0200
Fix a typo(?) in line_append_file
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/postinstall.aat b/postinstall.aat
@@ -49,7 +49,7 @@
|}
|function line_append_file(pre, match_str, post, pre_re, post_re, regex, grep1) {
| regex = match_str
-| grep = pre match_str post
+| grep1 = pre match_str post
| gsub(/[][)(\\\/*+?]/, "\\\\&", regex)
| gsub(/[][)(\\\/*+?]/, "\\\\&", grep1)
? grep -qEe '^{{grep1}}$' $fname
diff --git a/postinstall.fileset b/postinstall.fileset
@@ -22,7 +22,7 @@ CN # Managed by /usr/src/core-system
/etc +
/etc/group +
-? grep -qEe '^$' $fname
+? grep -qEe '^sshd:x:22:$' $fname
! if grep -qEe '^[^:]*:[^:]*:22:' $fname; then
sed -ire 's|^[^:]*:[^:]*:22:|sshd:x:22:|' $fname
else