Skip to content

Commit

Permalink
Remove accidental line-break in useradd command
Browse files Browse the repository at this point in the history
The name of the user-to-be-added was on a new line, instead of at the end of the useradd command. This caused an error in the rpm-script when it attempted to create the openarc user.
  • Loading branch information
lquidfire authored and flowerysong committed Nov 16, 2024
1 parent 1d96f9d commit 3ff4b07
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions contrib/spec/openarc.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,7 @@ EOF

%pre
if ! getent passwd %{name} >/dev/null 2>&1; then
%{_sbindir}/useradd -M -d %{_localstatedir}/lib/%{name} -r -s /sbin/nologin
%{name}
%{_sbindir}/useradd -M -d %{_localstatedir}/lib/%{name} -r -s /sbin/nologin %{name}
if ! getent group %{name} >/dev/null; then
%{_sbindir}/groupadd %{name}
%{_sbindir}/usermod -g %{name} %{name}
Expand Down

0 comments on commit 3ff4b07

Please sign in to comment.