2015-10-23 18:10:47 +00:00
|
|
|
#!/bin/sh
|
2015-11-16 19:21:57 +00: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 18:10:47 +00:00
|
|
|
|
2015-12-16 04:35:21 +00:00
|
|
|
PACKAGE=$1
|
|
|
|
INSTALL_DESTINATION=$2
|
2017-08-03 01:09:15 +00:00
|
|
|
INSTALL_TEMP_HOME=/tmp/dotnet-installer
|
2015-12-16 04:35:21 +00:00
|
|
|
|
2015-12-15 22:08:00 +00:00
|
|
|
# A temporary fix for the permissions issue(s)
|
2016-03-28 19:36:34 +00:00
|
|
|
chmod -R 755 $INSTALL_DESTINATION
|
2015-11-23 19:55:42 +00:00
|
|
|
|
2017-08-03 01:09:15 +00: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 20:47:13 +00:00
|
|
|
|
2015-10-23 18:10:47 +00:00
|
|
|
exit 0
|