sanlock.spec | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit 044aeaa2ff7877ec00fb0aae6845972267da5dca Author: Federico Simoncelli fsimonce@redhat.com Date: Wed Apr 20 13:59:34 2011 +0100
rpm: add sanlock user and group
diff --git a/sanlock.spec b/sanlock.spec index 5b5fdee..2b8798e 100644 --- a/sanlock.spec +++ b/sanlock.spec @@ -47,6 +47,10 @@ install -D -m 755 init.d/wdmd $RPM_BUILD_ROOT/%{_initddir}/wdmd %clean rm -rf $RPM_BUILD_ROOT
+%pre +/usr/sbin/useradd -c "Sanlock" -s /sbin/nologin -r \ + -d /var/run/sanlock sanlock 2> /dev/null || : + %post /sbin/chkconfig --add sanlock /sbin/chkconfig --add wdmd
sanlock-devel@lists.fedorahosted.org