[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Set tor home directory to something more reasonable when fi...
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] Set tor home directory to something more reasonable when fi...
- From: nickm@xxxxxxxx (Nick Mathewson)
- Date: Sun, 15 May 2005 01:01:51 -0400 (EDT)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Sun, 15 May 2005 01:02:11 -0400
- Reply-to: or-dev@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
Update of /home/or/cvsroot/tor
In directory moria.mit.edu:/tmp/cvs-serv15526
Modified Files:
tor.spec.in
Log Message:
Set tor home directory to something more reasonable when first installing.
Index: tor.spec.in
===================================================================
RCS file: /home/or/cvsroot/tor/tor.spec.in,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- tor.spec.in 5 Jan 2005 00:06:49 -0000 1.11
+++ tor.spec.in 15 May 2005 05:01:49 -0000 1.12
@@ -201,9 +201,10 @@
# 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 / -s /sbin/nologin %{runuser} 2> /dev/null
+ if [ -x /sbin/nologin ]; then
+ %{_sbindir}/useradd -r -g %{runuser} -d %{localstatedir}/lib/%{name} -s /sbin/nologin %{runuser} 2> /dev/null
else
- %{_sbindir}/useradd -r -g %{runuser} -d / -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