Skip to content

Commit

Permalink
Add Azure Linux if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanduplenskikh committed Nov 8, 2024
1 parent 8452104 commit f6a4412
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/Misc/layoutbin/installdependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,26 @@ then
print_errormessage
exit 1
fi
elif [ -e /etc/azurelinux-release ]
then
echo "The current OS is Azure Linux based"
print_banner "Azure Linux Version" $(cat /etc/azurelinux-release)

command -v tdnf
if [ $? -eq 0 ]
then
tdnf install -y icu
if [ $? -ne 0 ]
then
echo "'tdnf' failed with exit code '$?'"
print_errormessage
exit 1
fi
else
echo "Can not find 'tdnf'"
print_errormessage
exit 1
fi
else
echo "Can't detect current OS type based on $filepath."
print_errormessage
Expand Down

0 comments on commit f6a4412

Please sign in to comment.