mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 15:43:32 +01:00
another rpm spec tweak contributed by Christopher Schanzle
svn:r4271
This commit is contained in:
parent
c466f2b9e7
commit
918c5a9115
@ -6,7 +6,7 @@
|
||||
# This should be incremented whenever the spec file changes, but
|
||||
# can drop back to zero at a new Tor version
|
||||
|
||||
%define specver 1
|
||||
%define specver 2
|
||||
|
||||
## Things users may want to change
|
||||
#
|
||||
@ -200,9 +200,9 @@ if [ ! -n "`/usr/bin/id -u %{runuser} 2>/dev/null`" ]; then
|
||||
# One would also like to default the UID, but doing that properly would
|
||||
# also require thought.
|
||||
if [ -x /sbin/nologin ]; then
|
||||
%{_sbindir}/useradd -r -g %{runuser} -d %{localstatedir}/lib/%{name} -s /sbin/nologin %{runuser} 2> /dev/null
|
||||
%{_sbindir}/useradd -r -g %{runuser} -d %{_localstatedir}/lib/%{name} -s /sbin/nologin %{runuser} 2> /dev/null
|
||||
else
|
||||
%{_sbindir}/useradd -r -g %{runuser} -d %{localstatedir}/lib/%{name} -s /bin/false %{runuser} 2> /dev/null
|
||||
%{_sbindir}/useradd -r -g %{runuser} -d %{_localstatedir}/lib/%{name} -s /bin/false %{runuser} 2> /dev/null
|
||||
fi
|
||||
fi
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user