Skip to content

Commit

Permalink
Started adding support for Ubuntu 24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
tblock79 committed Oct 31, 2024
1 parent ab184c9 commit fa96b9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ error() {
trap 'error ${LINENO}' ERR

UBUNTU_VERSION=$(lsb_release -rs)
if [ $UBUNTU_VERSION != "20.04" ] && [ $UBUNTU_VERSION != "22.04" ]; then
if [ $UBUNTU_VERSION != "20.04" ] && [ $UBUNTU_VERSION != "22.04" ] && [ $UBUNTU_VERSION != "24.04" ]; then
echo "Invalid operating system!"
echo "This mercure version requires Ubuntu 20.04 LTS or 22.04 LTS"
echo "This mercure version requires Ubuntu 20.04 LTS, 22.04 LTS, or Ubuntu 24.04 LTS"
echo "Detected operating system = $UBUNTU_VERSION"
exit 1
fi
Expand Down
5 changes: 4 additions & 1 deletion receiver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ echo ""
echo "Arguments: $@"
echo ""
binary=bin/getdcmtags
if [[ $(lsb_release -rs) == "22.04" ]]; then
if [[ $(lsb_release -rs) == "24.04" ]]; then
# Ubuntu 24.04 can use the same binary as 22.04
binary=bin/ubuntu22.04/getdcmtags
elif [[ $(lsb_release -rs) == "22.04" ]]; then
binary=bin/ubuntu22.04/getdcmtags
elif [[ $(lsb_release -rs) == "20.04" ]]; then
binary=bin/ubuntu20.04/getdcmtags
Expand Down

0 comments on commit fa96b9c

Please sign in to comment.