dotnet-installer/packaging/osx/scripts/postinstall
Zlatko Knezevic 5ef832ee94 Fix the PKG permission issue and change the install location
A temporary fix for the PKG permission issue by using chmod -R 755 in the postinstall
script. Change the install location to remove the "cli" part of the path. Also
change the corehost to reflect this change.

Fixes #492 and #390
2015-12-15 15:24:50 -08:00

26 lines
807 B
Bash
Executable file

#!/bin/sh
#
# Copyright (c) .NET Foundation and contributors. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
#
# A temporary fix for the permissions issue(s)
chmod -R 755 $2
ln -s $2/bin/dotnet /usr/local/bin/
ln -s $2/bin/dotnet-compile /usr/local/bin/
ln -s $2/bin/dotnet-compile-csc /usr/local/bin/
ln -s $2/bin/dotnet-new /usr/local/bin/
ln -s $2/bin/dotnet-pack /usr/local/bin/
ln -s $2/bin/dotnet-publish /usr/local/bin/
ln -s $2/bin/dotnet-repl /usr/local/bin/
ln -s $2/bin/dotnet-restore /usr/local/bin/
ln -s $2/bin/dotnet-resgen /usr/local/bin/
ln -s $2/bin/dotnet-run /usr/local/bin/
ln -s $2/bin/dotnet-test /usr/local/bin/
# A temporary solution to unblock dotnet compile
cp $2/bin/corehost /usr/local/bin/
exit 0