Merge pull request #37442 from twangboy/fix_osx_postinstall

Create paths.d directory
This commit is contained in:
Mike Place 2016-11-04 17:07:19 +13:00 committed by GitHub
commit edbfadca21

View file

@ -46,6 +46,9 @@ ln -sf /opt/salt/bin/salt-config.sh /usr/local/sbin/salt-config
# Add salt to paths.d
###############################################################################
# echo "Path: Adding salt to the path..." >> /tmp/postinstall.txt
if [ ! -d "/etc/paths.d" ]; then
mkdir /etc/paths.d
fi
sh -c 'echo "/opt/salt/bin" > /etc/paths.d/salt'
sh -c 'echo "/usr/local/sbin" >> /etc/paths.d/salt'