Add support for RHEL / Oracle (9xx)

This commit is contained in:
2024-03-23 13:13:29 +08:00
parent 0a659528a4
commit cc4eb4f544
2 changed files with 95 additions and 2 deletions

View File

@@ -26,8 +26,21 @@ cd "$APP_DIR"
APP_DIR="$(pwd)"
if [ "$(uname)" == "Linux" ]; then
# TODO: add support for different distributions
./install-ubuntu.sh
# detect WSL
if uname -r | grep -q WSL > /dev/null; then
export PROFILE_WSL=y
fi
source /etc/os-release
export PROFILE_DISTRO="$ID"
export PROFILE_DISTRO_VERSION="$VERSION_ID"
export PROFILE_DISTRO_CODENAME="$VERSION_CODENAME"
export PROFILE_DISTRO_FAMILY="$ID_LIKE"
case "$PROFILE_DISTRO" in
ubuntu ) ./install-ubuntu.sh ;;
ol | rhel ) ./install-rhel.sh ;;
* ) echo "Unknown distro, install manually"
esac
elif [ "$(uname)" == "Darwin" ]; then
echo TODO: install-macos.sh
else