summaryrefslogtreecommitdiff
path: root/omnibus/package-scripts/chef/postinst
diff options
context:
space:
mode:
Diffstat (limited to 'omnibus/package-scripts/chef/postinst')
-rwxr-xr-xomnibus/package-scripts/chef/postinst13
1 files changed, 3 insertions, 10 deletions
diff --git a/omnibus/package-scripts/chef/postinst b/omnibus/package-scripts/chef/postinst
index 45893241b3..1500feac0c 100755
--- a/omnibus/package-scripts/chef/postinst
+++ b/omnibus/package-scripts/chef/postinst
@@ -23,17 +23,10 @@ error_exit()
is_darwin()
{
- uname -v | grep "^Darwin" 2>&1 >/dev/null
+ uname -a | 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
@@ -106,6 +99,6 @@ ln -sf $INSTALLER_DIR/bin/chef-client $PREFIX/bin || error_exit "Cannot link che
# be manually fixed.
chown -Rh 0:0 $INSTALLER_DIR
-echo "Thank you for installing Chef!"
+echo "Thank you for installing Chef Infra Client! For help getting started visit https://learn.chef.io"
exit 0