更新 install.sh

This commit is contained in:
星光-k
2025-01-09 02:47:34 +00:00
committed by GitHub
parent 0d3773d808
commit 06dd30e40d

View File

@@ -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版本号