installing dependencies only when .net core is not found

This commit is contained in:
Shreyas Zare
2019-05-19 01:33:41 +05:30
parent 1e54029bc6
commit 1dc652216a

View File

@@ -17,21 +17,21 @@ echo ""
echo "==============================="
echo "Technitium DNS Server Installer"
echo "==============================="
echo ""
echo "Installing dependencies..."
until apt-get -y update >> $installLog 2>&1 && apt-get -y install curl libunwind8 gettext apt-transport-https >> $installLog 2>&1
do
echo "Trying again.."
sleep 2
done
echo ""
if [ -d "$aspnetcoreTestDir" ] && [ -f "/usr/bin/dotnet" ]
then
echo ".NET Core Runtime was found installed."
else
echo "Installing dependencies..."
until apt-get -y update >> $installLog 2>&1 && apt-get -y install curl libunwind8 gettext apt-transport-https >> $installLog 2>&1
do
echo "Trying again.."
sleep 2
done
echo ""
echo "Downloading .NET Core Runtime..."
mkdir -p $aspnetcoreDir