Merge pull request #44 from rstudio/jon/qi
Support RHEL Minor Versions in quick install
This commit is contained in:
commit
8aea222dbf
1 changed files with 8 additions and 10 deletions
18
install.sh
18
install.sh
|
|
@ -87,16 +87,14 @@ detect_os_version () {
|
||||||
if [[ "${os}" == "RedHat" ]]; then
|
if [[ "${os}" == "RedHat" ]]; then
|
||||||
if [[ $(cat /etc/os-release | grep -e "^VERSION_ID\=*" | cut -f 2 -d '=') =~ ^(\"8.|28) ]]; then
|
if [[ $(cat /etc/os-release | grep -e "^VERSION_ID\=*" | cut -f 2 -d '=') =~ ^(\"8.|28) ]]; then
|
||||||
echo "8"
|
echo "8"
|
||||||
else
|
elif [[ $(cat /etc/os-release | grep -e "^VERSION_ID\=*" | cut -f 2 -d '=') =~ ^(\"7.) ]]; then
|
||||||
if [[ -f /etc/os-release ]]; then
|
echo "7"
|
||||||
cat /etc/os-release | grep -e "^VERSION_ID\=*" | cut -f 2 -d '=' | sed -e 's/"//g'
|
elif [[ -f /etc/redhat-release ]]; then
|
||||||
else
|
if [[ $(cat /etc/redhat-release | grep "6.") ]]; then
|
||||||
if [[ -f /etc/redhat-release ]]; then
|
echo 6
|
||||||
if [[ $(cat /etc/redhat-release | grep "6.") ]]; then
|
|
||||||
echo 6
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
elif [[ -f /etc/os-release ]]; then
|
||||||
|
cat /etc/os-release | grep -e "^VERSION_ID\=*" | cut -f 2 -d '=' | sed -e 's/"//g'
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [[ "${os}" == "Ubuntu" ]]; then
|
if [[ "${os}" == "Ubuntu" ]]; then
|
||||||
|
|
@ -459,5 +457,5 @@ case ${SCRIPT_ACTION} in
|
||||||
;;
|
;;
|
||||||
"-h"|"help"|*)
|
"-h"|"help"|*)
|
||||||
do_show_usage
|
do_show_usage
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue