From 044aeaa2ff7877ec00fb0aae6845972267da5dca Mon Sep 17 00:00:00 2001 From: Federico Simoncelli Date: Apr 20 2011 16:24:23 +0000 Subject: 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