Commit 2607a3f7 authored by Geoff Simmons's avatar Geoff Simmons

Bugfix the trackrdrd user created by the RPM install.

The varnish package (from packagecloud.io) makes the VSM directories
non-world-readable, but readable to the group varnish.

So the RPM no longer creates the group trackrdrd, but adds the
trackrdrd to group varnish.
parent 4301f15a
Pipeline #388 skipped
......@@ -79,9 +79,12 @@ make check
chmod o-w %{_builddir}/%{name}-%{version}/src/test
%pre
getent group trackrdrd >/dev/null || groupadd -r trackrdrd
if [ -z $(getent group varnish) ]; then
echo 'Group varnish not found (should have been created by package varnish)'
exit 1
fi
getent passwd trackrdrd >/dev/null || \
useradd -r -g trackrdrd -s /sbin/nologin \
useradd -r -g varnish -s /sbin/nologin \
-c "Tracking Log Reader" trackrdrd
exit 0
......@@ -124,7 +127,7 @@ rm -rf %{buildroot}
%{_unitdir}/trackrdrd.service
%post
chown trackrdrd:trackrdrd /var/log/trackrdrd
chown trackrdrd:varnish /var/log/trackrdrd
/sbin/ldconfig
%changelog
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment