From 06dd30e40d7c999771bf4705b23ee69a60784c8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=85=89-k?= <36470587+kxgx@users.noreply.github.com> Date: Thu, 9 Jan 2025 02:47:34 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20install.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/install.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bin/install.sh b/bin/install.sh index ee52fb3..48047b6 100644 --- a/bin/install.sh +++ b/bin/install.sh @@ -1,5 +1,14 @@ #!/bin/bash +# 设置默认的语言环境为英文(zh_CN.UTF-8),可以根据需要修改 +DEFAULT_LANG="zh_CN.UTF-8" + +# 设置默认语言环境 + export LANG=$DEFAULT_LANG + export LC_ALL=$DEFAULT_LANG + echo "$DEFAULT_LANG UTF-8" >> /etc/locale.gen + dpkg-reconfigure locales + # 检测是否是Debian系统 if [ -f /etc/debian_version ]; then # 读取Debian版本号