From 1ed2959463617c84543e062ef3acff395efb02ea Mon Sep 17 00:00:00 2001
From: Chris Ridd <chris.ridd@forgerock.com>
Date: Fri, 27 Jul 2012 10:14:56 +0000
Subject: [PATCH] Update SVR4 packaging for Solaris 11

---
 opends/resource/unconfigure |   17 +++++++++++------
 1 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/opends/resource/unconfigure b/opends/resource/unconfigure
index 265f159..d5a12ce 100755
--- a/opends/resource/unconfigure
+++ b/opends/resource/unconfigure
@@ -106,12 +106,17 @@
 fi
 
 echo "Disabling SMF service ..."
-# Now update SMF manifest, delete it and remove the file from  /var/svc/manifest
-echo select network/ldap/server >  /tmp/opendj-unconfigure.$$
-echo delete opendj >> /tmp/opendj-unconfigure.$$
-/usr/sbin/svccfg -f /tmp/opendj-unconfigure.$$
-rm /tmp/opendj-unconfigure.$$
-rm /var/svc/manifest/network/ldap/opendj-manifest.xml
+if [ `uname -r` = "5.10" ]; then
+  # Now update SMF manifest, delete it and remove the file from  /var/svc/manifest
+  echo select network/ldap/server >  /tmp/opendj-unconfigure.$$
+  echo delete opendj >> /tmp/opendj-unconfigure.$$
+  /usr/sbin/svccfg -f /tmp/opendj-unconfigure.$$
+  rm /tmp/opendj-unconfigure.$$
+  rm /var/svc/manifest/network/ldap/opendj-manifest.xml
+else
+  rm /lib/svc/manifest/network/ldap/opendj-manifest.xml
+  /usr/sbin/svcadm restart svc:/system/manifest-import:default
+fi
 
 echo "Resetting instance location ..."
 # Launch the unconfigure process.

--
Gitblit v1.10.0