Moving PKG postinstall to use the path
Since we are still waiting for the fix in CoreCLR to resolving symlinks, moving the PKG postinstall to add dotnet bin dir to systemwide path using /etc/paths.d/dotnet file. Fix #786, #771, #841
This commit is contained in:
parent
262274b968
commit
bc8fdaf38a
1 changed files with 2 additions and 19 deletions
|
@ -11,25 +11,8 @@ INSTALL_DESTINATION=$2
|
|||
# A temporary fix for the permissions issue(s)
|
||||
chmod -R 755 $INSTALL_DESTINATION
|
||||
|
||||
ln -s $INSTALL_DESTINATION/bin/dotnet /usr/local/bin/
|
||||
ln -s $INSTALL_DESTINATION/bin/dotnet-compile /usr/local/bin/
|
||||
ln -s $INSTALL_DESTINATION/bin/dotnet-build /usr/local/bin/
|
||||
ln -s $INSTALL_DESTINATION/bin/dotnet-compile-csc /usr/local/bin/
|
||||
ln -s $INSTALL_DESTINATION/bin/dotnet-compile-fsc /usr/local/bin/
|
||||
ln -s $INSTALL_DESTINATION/bin/dotnet-new /usr/local/bin/
|
||||
ln -s $INSTALL_DESTINATION/bin/dotnet-pack /usr/local/bin/
|
||||
ln -s $INSTALL_DESTINATION/bin/dotnet-publish /usr/local/bin/
|
||||
ln -s $INSTALL_DESTINATION/bin/dotnet-repl /usr/local/bin/
|
||||
ln -s $INSTALL_DESTINATION/bin/dotnet-restore /usr/local/bin/
|
||||
ln -s $INSTALL_DESTINATION/bin/dotnet-resgen /usr/local/bin/
|
||||
ln -s $INSTALL_DESTINATION/bin/dotnet-run /usr/local/bin/
|
||||
ln -s $INSTALL_DESTINATION/bin/dotnet-test /usr/local/bin/
|
||||
ln -s $INSTALL_DESTINATION/bin/dotnet-dnx /usr/local/bin/
|
||||
ln -s $INSTALL_DESTINATION/bin/csc /usr/local/bin/
|
||||
ln -s $INSTALL_DESTINATION/bin/libhostpolicy.dylib /usr/local/bin/
|
||||
|
||||
# A temporary solution to unblock dotnet compile
|
||||
cp $INSTALL_DESTINATION/bin/corehost /usr/local/bin/
|
||||
# Add the installation bin directory to the system-wide paths
|
||||
echo $INSTALL_DESTINATION/bin | tee -a /etc/paths.d/dotnet
|
||||
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue