Skip to content
Snippets Groups Projects
Commit e1a1121c authored by Michael Thomas's avatar Michael Thomas
Browse files

RPM packaging cleanup

parent 784391fc
No related branches found
No related tags found
1 merge request!52RPM packaging cleanup
......@@ -94,13 +94,20 @@ configuration for a GWDataFind Service instance.
%__mkdir -pv %{buildroot}%{_unitdir}/
%__install -m 644 -p -v config/gwdatafind-server.service %{buildroot}%{_unitdir}/%{srcname}.service
%post
%pre
getent group gwdatafind >/dev/null || groupadd -r gwdatafind
getent passwd gwdatafind >/dev/null || \
useradd -r -g gwdatafind -d %{_sharedstatedir} -s /sbin/nologin \
-c "Dedicated gwdatafind service account" gwdatafind
exit 0
%post -n %{srcname}
%systemd_post %{srcname}.service
%preun
%preun -n %{srcname}
%systemd_preun %{srcname}.service
%postun
%postun -n %{srcname}
%systemd_postun_with_restart %{srcname}.service
%clean
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment