2012-06-21 Koichiro Kikuchi <koichiro@rworks.jp>

* pandora_agent.redhat.spec: Merged from 4.0 branch. Don't create
	 pandora user if already exists.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6717 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
koichirok 2012-06-27 06:54:08 +00:00
parent e291b77d96
commit dd1d074877
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2012-06-21 Koichiro Kikuchi <koichiro@rworks.jp>
* pandora_agent.redhat.spec: Merged from 4.0 branch. Don't create
pandora user if already exists.
2012-05-30 Ramon Novoa <rnovoa@artica.es>
* pandora_agent: Merged from 4.0 branch. Check for valid regular

View File

@ -66,10 +66,10 @@ fi
rm -Rf $RPM_BUILD_ROOT
%pre
/usr/sbin/useradd -d %{prefix}/pandora -s /bin/false -M -g 0 pandora
getent passwd pandora >/dev/null || \
/usr/sbin/useradd -d %{prefix}/pandora -s /bin/false -M -g 0 pandora
exit 0
%post
if [ ! -d /etc/pandora ] ; then
mkdir -p /etc/pandora