Skip to content

Commit

Permalink
add sysuser definition to rpm spec
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Nov 14, 2024
1 parent a511aca commit 8112168
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bley.spec
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ for file in bley.conf whitelist_clients whitelist_recipients; do
$RPM_BUILD_ROOT%{_sysconfdir}/%{name}/${file}
done

mkdir -p $RPM_BUILD_ROOT%{_sysusersdir}
echo 'u bley - bley' > $RPM_BUILD_ROOT%{_sysusersdir}/%{name}.conf

%post
%systemd_post %{name}.service
Expand All @@ -75,6 +77,7 @@ done
%{_mandir}/man1/%{name}.1.gz
%{_mandir}/man1/%{name}graph.1.gz
%{_unitdir}/%{name}.service
%{_sysusersdir}/%{name}.conf

%files logcheck
%doc CHANGELOG.md README.md
Expand Down

0 comments on commit 8112168

Please sign in to comment.