install2: create postinstall.d/86-all-groups if not exist only

postinstall.d/86-all-groups the script will be packaged into the
installer-common-stage2.
This commit is contained in:
Anton Midyukov 2024-02-14 08:55:33 +07:00
parent 6423c67bcc
commit 5ab102378f

View File

@ -3,6 +3,9 @@
SCRIPT="/usr/share/install2/postinstall.d/86-all-groups"
# the script will be packaged into the installer-common-stage2
[ ! -x "$SCRIPT" ] || exit 0
cat > "$SCRIPT" << EOF
#!/bin/sh -efu