2015-10-23 11:10:47 -07:00
|
|
|
#!/bin/sh
|
2015-11-16 11:21:57 -08:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
2015-10-23 11:10:47 -07:00
|
|
|
|
2015-12-15 20:35:21 -08:00
|
|
|
PACKAGE=$1
|
|
|
|
INSTALL_DESTINATION=$2
|
2017-08-02 18:09:15 -07:00
|
|
|
INSTALL_TEMP_HOME=/tmp/dotnet-installer
|
2015-12-15 20:35:21 -08:00
|
|
|
|
2015-12-15 14:08:00 -08:00
|
|
|
# A temporary fix for the permissions issue(s)
|
2016-03-28 12:36:34 -07:00
|
|
|
chmod -R 755 $INSTALL_DESTINATION
|
2015-11-23 11:55:42 -08:00
|
|
|
|
2017-08-02 18:09:15 -07:00
|
|
|
first_run() {
|
|
|
|
$INSTALL_DESTINATION/dotnet exec $INSTALL_DESTINATION/sdk/%SDK_VERSION%/dotnet.dll internal-reportinstallsuccess "$1" > /dev/null 2>&1 || true
|
|
|
|
}
|
|
|
|
|
|
|
|
[ -d $INSTALL_TEMP_HOME ] || mkdir $INSTALL_TEMP_HOME
|
|
|
|
HOME=$INSTALL_TEMP_HOME first_run
|
2017-04-24 13:47:13 -07:00
|
|
|
|
2015-10-23 11:10:47 -07:00
|
|
|
exit 0
|