Skip to content

Commit

Permalink
Use groupadd instead of addgroup
Browse files Browse the repository at this point in the history
The latter seems to no longer be available on Amazon Linux 2023. Since
addgroup is just a convenience wrapper around groupadd and we are only
using its basic functionality, we can switch to using groupadd
directly.
  • Loading branch information
msakrejda committed Nov 13, 2024
1 parent 120b7e4 commit c08f132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/src/rpm-systemd/post.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if ! getent passwd pganalyze > /dev/null; then
fi

if ! getent group pganalyze > /dev/null; then
addgroup --system --quiet pganalyze
groupadd --system pganalyze
usermod -g pganalyze pganalyze
fi

Expand Down

0 comments on commit c08f132

Please sign in to comment.