Skip to content

Commit

Permalink
Drop lsc_user and lsc_group variables
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierba committed Jan 23, 2024
1 parent 048bc08 commit 2eac030
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/install/lsc-core.spec
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
#=================================================

%global lsc_logdir %{_localstatedir}/log/lsc
%global lsc_user lsc
%global lsc_group lsc
%global snapshot 1

Name: lsc
Expand Down Expand Up @@ -126,13 +124,13 @@ sed -i \


%pre
getent group %{lsc_group} > /dev/null 2>&1 || groupadd --system %{lsc_group}
getent passwd %{lsc_user} > /dev/null 2>&1 || \
useradd --system --gid %{lsc_group} \
getent group lsc > /dev/null 2>&1 || groupadd --system lsc
getent passwd lsc > /dev/null 2>&1 || \
useradd --system --gid lsc \
--home-dir %{_sharedstatedir}/lsc \
--shell "/sbin/nologin" \
--comment "LDAP Synchronization Connector user" \
%{lsc_user}
lsc

%post
%systemd_post lsc-async.service
Expand Down

0 comments on commit 2eac030

Please sign in to comment.