Skip to content

Commit

Permalink
Use groupadd instead of addgroup (#632)
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 authored Nov 21, 2024
1 parent 5df935b commit 1cdbf3e
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 1cdbf3e

Please sign in to comment.