Updated mcollective.init according to OSCI-658
[packages/precise/mcollective.git] / ext / solaris / postinstall
diff --git a/ext/solaris/postinstall b/ext/solaris/postinstall
new file mode 100644 (file)
index 0000000..1f2d093
--- /dev/null
@@ -0,0 +1,6 @@
+#! /bin/bash
+
+PKG_INSTALL_ROOT=${PKG_INSTALL_ROOT:-/}
+
+/usr/bin/test -d $PKG_INSTALL_ROOT/etc/mcollective || /usr/sbin/chroot $PKG_INSTALL_ROOT /usr/bin/ln -s /etc/opt/csw/mcollective /etc/mcollective
+/usr/sbin/chroot $PKG_INSTALL_ROOT /usr/sbin/svccfg import /var/opt/csw/svc/manifest/network/cswmcollectived.xml || /bin/true