调整 Alpine 系统 bash 默认 shell 设置输出颜色
- 将 Alpine 系统设置 bash 默认 shell 的输出颜色从绿色改为黄色 - 保持原有的设置逻辑不变 - 增强输出的视觉一致性
This commit is contained in:
2
1.sh
2
1.sh
@ -21,7 +21,7 @@ if [ -f /etc/debian_version ]; then
|
|||||||
print_green "已将 bash 设置为默认 shell"
|
print_green "已将 bash 设置为默认 shell"
|
||||||
elif [ -f /etc/alpine-release ]; then
|
elif [ -f /etc/alpine-release ]; then
|
||||||
sed -i 's/^root:.*/root:\/bin\/bash/' /etc/passwd
|
sed -i 's/^root:.*/root:\/bin\/bash/' /etc/passwd
|
||||||
print_green "已将 bash 设置为默认 shell"
|
print_yellow "已将 bash 设置为默认 shell"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 先检查是 Debian 还是 Alpine
|
# 先检查是 Debian 还是 Alpine
|
||||||
|
Reference in New Issue
Block a user