summaryrefslogtreecommitdiff
path: root/omnibus/package-scripts/chef/postinst
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-07-14 21:00:20 -0700
committerTim Smith <tsmith84@gmail.com>2020-07-14 21:00:20 -0700
commit386b3ffe891c4a0a12e84b2a0e9160731b522d59 (patch)
tree28638e0ef503106db34a7845c0eecca44d2566a9 /omnibus/package-scripts/chef/postinst
parented1e4a3549e7adc0999c946dab7112f3518a53fe (diff)
downloadchef-386b3ffe891c4a0a12e84b2a0e9160731b522d59.tar.gz
Remove smartos detection / support in our package scripts
We don't produce smartos packages and we never have. There's no reason to carry around this baggage. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'omnibus/package-scripts/chef/postinst')
-rwxr-xr-xomnibus/package-scripts/chef/postinst9
1 files changed, 1 insertions, 8 deletions
diff --git a/omnibus/package-scripts/chef/postinst b/omnibus/package-scripts/chef/postinst
index c1c5272902..d4e12a239e 100755
--- a/omnibus/package-scripts/chef/postinst
+++ b/omnibus/package-scripts/chef/postinst
@@ -26,14 +26,7 @@ is_darwin()
uname -v | grep "^Darwin" 2>&1 >/dev/null
}
-is_smartos()
-{
- uname -v | grep "^joyent" 2>&1 >/dev/null
-}
-
-if is_smartos; then
- PREFIX="/opt/local"
-elif is_darwin; then
+if is_darwin; then
PREFIX="/usr/local"
mkdir -p "$PREFIX/bin"
else