diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2014-06-10 18:27:41 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2014-06-10 18:27:41 +0400 |
commit | ad550feaf12753c834a7476edaf8f1cc9e19edec (patch) | |
tree | 2cfa4b16d9e2d97ea2829267d03341c9817aef74 | |
parent | 69c20d681c5015094c37749f52976912b4e72943 (diff) | |
download | dh-smf-ad550feaf12753c834a7476edaf8f1cc9e19edec.tar.gz |
/usr/sbin/svccfg delete -f cannot work with multiple FMRIs
-rw-r--r-- | autoscripts/postrm-smf-delete | 6 |
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 |