summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2014-06-10 18:27:41 +0400
committerIgor Pashev <pashev.igor@gmail.com>2014-06-10 18:27:41 +0400
commitad550feaf12753c834a7476edaf8f1cc9e19edec (patch)
tree2cfa4b16d9e2d97ea2829267d03341c9817aef74
parent69c20d681c5015094c37749f52976912b4e72943 (diff)
downloaddh-smf-ad550feaf12753c834a7476edaf8f1cc9e19edec.tar.gz
/usr/sbin/svccfg delete -f cannot work with multiple FMRIs
-rw-r--r--autoscripts/postrm-smf-delete6
1 files changed, 4 insertions, 2 deletions
diff --git a/autoscripts/postrm-smf-delete b/autoscripts/postrm-smf-delete
index d423321..bad0408 100644
--- a/autoscripts/postrm-smf-delete
+++ b/autoscripts/postrm-smf-delete
@@ -1,8 +1,10 @@
if [ "$1" = remove ]; then
if [ -x /usr/bin/smf_present ] && /usr/bin/smf_present; then
- /usr/sbin/svccfg delete -f #SERVICES# || true;
+ for s in #SERVICES#; do
+ /usr/sbin/svccfg delete -f $s || true;
+ done
for f in #MANIFESTS#; do
- /usr/sbin/svccfg delhash -d "$f" || true;
+ /usr/sbin/svccfg delhash -d $f || true;
done
fi
fi