From 8bbba9d3256c37205f9bd5ab131554c0fa453145 Mon Sep 17 00:00:00 2001
From: Ludovic Poitou <ludovic.poitou@forgerock.com>
Date: Tue, 08 Feb 2011 12:03:28 +0000
Subject: [PATCH] Add support for SVR4 packages for OpenDJ. Package name is opendj. It's a single package and has integration with SMF. Default installation is /usr/opendj. Once packages are installed, root must run configure to setup the Instance location (/var/opendj) and owner. And the owner must run setup.
---
opends/resource/configure | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/opends/resource/configure b/opends/resource/configure
index 5bbde7c..cdccedd 100755
--- a/opends/resource/configure
+++ b/opends/resource/configure
@@ -24,6 +24,7 @@
#
#
# Copyright 2006-2008 Sun Microsystems, Inc.
+# Portions Copyright 2011 ForgeRock AS
# Capture the current working directory so that we can change to it later.
@@ -70,7 +71,7 @@
if test ${RETURN_CODE} -eq 0
then
# Retrieve INSTANCE_ROOT
- INSTANCE_ROOT=`cat /etc/opends/instance.loc`
+ INSTANCE_ROOT=`cat /etc/opendj/instance.loc`
# Now update SMF manifest, cp it to the right place and import it
OWNER=`ls -ld ${INSTANCE_ROOT}`
CURRENT_IFS=${IFS}
@@ -81,13 +82,13 @@
IFS=${CURRENT_IFS}
if test "${USERNAME}" = "ldap" -a "$GROUPNAME" = "ldap"
then
- cp ${INSTALL_ROOT}/resources/opends-manifest.xml /var/svc/manifest/network/ldap/
+ cp ${INSTALL_ROOT}/resources/opendj-manifest.xml /var/svc/manifest/network/ldap/
else
- cat ${INSTALL_ROOT}/resources/opends-manifest.xml | sed -e "s/user='ldap/user='${USERNAME}/;s/group='ldap/group='${GROUPNAME}/" > /tmp/opends-manifest.$$
- cp /tmp/opends-manifest.$$ /var/svc/manifest/network/ldap/opends-manifest.xml
- rm /tmp/opends-manifest.$$
+ cat ${INSTALL_ROOT}/resources/opendj-manifest.xml | sed -e "s/user='ldap/user='${USERNAME}/;s/group='ldap/group='${GROUPNAME}/" > /tmp/opendj-manifest.$$
+ cp /tmp/opendj-manifest.$$ /var/svc/manifest/network/ldap/opendj-manifest.xml
+ rm /tmp/opendj-manifest.$$
fi
- /usr/sbin/svccfg import /var/svc/manifest/network/ldap/opends-manifest.xml
+ /usr/sbin/svccfg import /var/svc/manifest/network/ldap/opendj-manifest.xml
fi
exit ${RETURN_CODE}
fi
--
Gitblit v1.10.0