mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-01-05 08:15:54 +00:00
installing dependencies only when .net core is not found
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user