mirror of
https://github.com/angristan/openvpn-install.git
synced 2024-12-04 14:35:31 +01:00
修复腾讯云tencentos系统安装时报错
This commit is contained in:
parent
e1f19e0f24
commit
a33f1b631f
@ -65,6 +65,16 @@ function checkOS() {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
if [[ $ID == "tencentos" ]]; then
|
||||||
|
OS="centos"
|
||||||
|
if [[ ${VERSION_ID%.*} -lt 3 ]]; then
|
||||||
|
echo "⚠️ Your version of CentOS is not supported."
|
||||||
|
echo ""
|
||||||
|
echo "The script only support CentOS 7 and CentOS 8."
|
||||||
|
echo ""
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
if [[ $ID == "ol" ]]; then
|
if [[ $ID == "ol" ]]; then
|
||||||
OS="oracle"
|
OS="oracle"
|
||||||
if [[ ! $VERSION_ID =~ (8) ]]; then
|
if [[ ! $VERSION_ID =~ (8) ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user