[packages/mfs] - use /var/lib/mfs as user dir

baggins baggins at pld-linux.org
Mon Oct 15 12:02:41 CEST 2012


commit ef1c28b868e741a21e01ccb8e24a452583cee4b0
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Oct 15 12:02:13 2012 +0200

    - use /var/lib/mfs as user dir

 mfs.spec | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/mfs.spec b/mfs.spec
index a80e010..23d455e 100644
--- a/mfs.spec
+++ b/mfs.spec
@@ -123,7 +123,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %pre master
 %groupadd -g 282 mfs
-%useradd -u 282 -d /var/mfs -s /bin/false -c "MooseFS pseudo user" -g mfs mfs
+%useradd -u 282 -d /var/lib/mfs -s /bin/false -c "MooseFS pseudo user" -g mfs mfs
 
 %postun master
 if [ "$1" = "0" ]; then
@@ -133,7 +133,7 @@ fi
 
 %pre metalogger
 %groupadd -g 282 mfs
-%useradd -u 282 -d /var/mfs -s /bin/false -c "MooseFS pseudo user" -g mfs mfs
+%useradd -u 282 -d /var/lib/mfs -s /bin/false -c "MooseFS pseudo user" -g mfs mfs
 
 %postun metalogger
 if [ "$1" = "0" ]; then
@@ -143,7 +143,7 @@ fi
 
 %pre chunkserver
 %groupadd -g 282 mfs
-%useradd -u 282 -d /var/mfs -s /bin/false -c "MooseFS pseudo user" -g mfs mfs
+%useradd -u 282 -d /var/lib/mfs -s /bin/false -c "MooseFS pseudo user" -g mfs mfs
 
 %postun chunkserver
 if [ "$1" = "0" ]; then
@@ -186,6 +186,7 @@ fi
 %{_mandir}/man8/mfschunkserver.8*
 %attr(640,root,root) %config(noreplace) %{mfsconfdir}/mfschunkserver.cfg
 %attr(640,root,root) %config(noreplace) %{mfsconfdir}/mfshdd.cfg
+%attr(750,mfs,mfs) %dir %{_localstatedir}/mfs
 
 %files client
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mfs.git/commitdiff/ef1c28b868e741a21e01ccb8e24a452583cee4b0



More information about the pld-cvs-commit mailing list