Update install.sh

This commit is contained in:
midoks 2022-11-08 19:25:09 +08:00
parent 6fe9302108
commit 7fd4e7177b
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ OSNAME=`cat ${rootPath}/data/osname.pl`
VERSION_ID=`cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}' | awk -F "\"" '{print $2}'`
echo "VERSION_ID:${VERSION_ID}"
if [ "$VERSION_ID" -gt "7" ]; then
if [ "$OSNAME" == "centos" ] && [ "$VERSION_ID" -gt "7" ]; then
VERSION_ID=7
fi