[csw-devel] SF.net SVN: gar:[16891] csw/mgar/pkg/389-ds-base/trunk/files/ 0003-add-user-and-var-run-dirsrv.patch

cgrzemba at users.sourceforge.net cgrzemba at users.sourceforge.net
Mon Jan 23 14:15:58 CET 2012


Revision: 16891
          http://gar.svn.sourceforge.net/gar/?rev=16891&view=rev
Author:   cgrzemba
Date:     2012-01-23 13:15:58 +0000 (Mon, 23 Jan 2012)
Log Message:
-----------
389-ds-base/trunk: fix piddir problems

Modified Paths:
--------------
    csw/mgar/pkg/389-ds-base/trunk/files/0003-add-user-and-var-run-dirsrv.patch

Modified: csw/mgar/pkg/389-ds-base/trunk/files/0003-add-user-and-var-run-dirsrv.patch
===================================================================
--- csw/mgar/pkg/389-ds-base/trunk/files/0003-add-user-and-var-run-dirsrv.patch	2012-01-23 13:01:13 UTC (rev 16890)
+++ csw/mgar/pkg/389-ds-base/trunk/files/0003-add-user-and-var-run-dirsrv.patch	2012-01-23 13:15:58 UTC (rev 16891)
@@ -47,13 +47,14 @@
  
 +USER=`/usr/xpg4/bin/id -u -n`
 +export USER
-+[ -d /var/run/dirsrv ] && mkdir -p /var/run/dirsrv
++[ ! -d /var/opt/csw/run/dirsrv ] && mkdir -p /var/opt/csw/run/dirsrv
 +if [ -f /etc/opt/csw/dirsrv/admin-serv/adm.conf ]; then
 +  slapd-user=`grep SuiteSpotUserID /etc/opt/csw/dirsrv/admin-serv/adm.conf | cut -d: -f2 | tr -d [:space:]`
 +  slapd-group=`grep SuiteSpotGroup /etc/opt/csw/dirsrv/admin-serv/adm.conf | cut -d: -f2 | tr -d [:space:]`
-+  chown $slapd-user:$slapd-group /var/run/dirsrv
++  chown $slapd-user:$slapd-group /var/opt/csw/run/dirsrv
 +fi
-+chmod g+w /var/run/dirsrv
++chmod g+w /var/opt/csw/run/dirsrv
++chmod +rx /var/opt/csw/run
 +
  # how many seconds to wait for the startpid file to show
  # up before we assume there is a problem and fail to start

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list