From 2d1c024a412a4667c33affd7a505960ce0f76ba0 Mon Sep 17 00:00:00 2001 From: fscarmen <62703343+fscarmen@users.noreply.github.com> Date: Fri, 27 May 2022 00:41:40 +0800 Subject: [PATCH] Update menu.sh --- menu.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/menu.sh b/menu.sh index 2a3554c..1c3a64a 100644 --- a/menu.sh +++ b/menu.sh @@ -1574,7 +1574,7 @@ proxy(){ ${PACKAGE_INSTALL[int]} nftables rpm -ivh Client_CentOS_8.rpm if [[ ! $(strings /lib64/libc.so.6) =~ 'GLIBC_2.28' ]]; then - CLIBC=1 + GLIBC=1 wget -O /usr/bin/make https://github.com/fscarmen/warp/releases/download/Glibc/make wget https://github.com/fscarmen/warp/releases/download/Glibc/glibc-2.28.tar.gz tar -xzvf glibc-2.28.tar.gz @@ -1611,8 +1611,8 @@ proxy(){ else red " ${T[${L}85]} " fi - # 此处为处理 Running transaction test 不动和文字乱码问题 - if [ $CLIBC = 1 ]; then + # 此处为处理 CentOS 7 安装 Glibc 2.28 之后 Running transaction test 不动和文字乱码问题 + if [ $GLIBC = 1 ]; then export LANG="en_US.UTF-8";export LANGUAGE="en_US.UTF-8" rm -rf /var/lib/rpm/__db* yum clean all