Update install.sh

This commit is contained in:
midoks
2022-11-08 02:49:42 +08:00
parent bcde85d24e
commit 5f40286bff
+4 -3
View File
@@ -29,13 +29,14 @@ bash ${rootPath}/scripts/getos.sh
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}"
OS_SIGN=1.el9
if [ "$OSNAME" == "centos" ];then
OS_SIGN=1.el${$VERSION_ID}
OS_SIGN=1.el${VERSION_ID}
elif [ "$OSNAME" == "fedora" ]; then
OS_SIGN=10.fc${$VERSION_ID}
OS_SIGN=10.fc${VERSION_ID}
elif [ "$OSNAME" == "suse" ]; then
OS_SIGN=1.sl${$VERSION_ID}
OS_SIGN=1.sl${VERSION_ID}
fi
MYSQL_VER=8.0.30