summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2013-07-15 20:04:42 +0400
committerIgor Pashev <pashev.igor@gmail.com>2013-07-15 20:04:42 +0400
commitf77504401b72cb900ada224a258735c5d0d35a7c (patch)
treeccace55150d50273efa497230e73678c569b4c42
parent66cba99a4134578d5f4b7c934326a570e4a4ea1a (diff)
downloaddh-smf-f77504401b72cb900ada224a258735c5d0d35a7c.tar.gz
Do not set SVCCFG_REPOSITORY!
-rw-r--r--autoscripts/postinst-smf-import6
1 files changed, 4 insertions, 2 deletions
diff --git a/autoscripts/postinst-smf-import b/autoscripts/postinst-smf-import
index e3b12e3..69b8396 100644
--- a/autoscripts/postinst-smf-import
+++ b/autoscripts/postinst-smf-import
@@ -1,4 +1,6 @@
-env SVCCFG_REPOSITORY=/etc/svc/repository.db \
+if [ -x /usr/sbin/svccfg ] && [ -x /usr/bin/smf_present ] && /usr/bin/smf_present; then
SVCCFG_CHECKHASH=1 \
- svccfg -v import #MANIFESTS# || true
+ /usr/sbin/svccfg -v import #MANIFESTS# \
+ || true
+fi