Skip to content

Commit

Permalink
Update apache-tomcat.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
tekadesukant authored Jan 29, 2025
1 parent 9601b78 commit 314cad3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apache-tomcat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ if [ "$OS" = "amzn" ]; then
fi
log "Installed Java $SUPPORTED_JAVA successfully."
elif [ "$OS" = "rhel" ] || [ "$OS" = "centos" ]; then
log "RHEL or CentOS detected. Installing Java Development Kit..."
log "RHEL/CentOS detected. Installing Java Development Kit..."
if [ "$SUPPORTED_JAVA" = "8" ]; then
sudo yum install java-1.8.0-openjdk-devel -y
elif [ "$SUPPORTED_JAVA" -ne "8" ]; then
Expand All @@ -71,7 +71,7 @@ elif [ "$OS" = "rhel" ] || [ "$OS" = "centos" ]; then
fi
log "Installed Java $SUPPORTED_JAVA successfully."
elif [ "$OS" = "ubuntu" ] || [ "$OS" = "debian" ]; then
log "Ubuntu detected. Updating package lists..."
log "Ubuntu/Debian detected. Updating package lists..."
sudo apt update -y
sudo apt-get upgrade -y
log "Installing Java Development Kit..."
Expand Down

0 comments on commit 314cad3

Please sign in to comment.