Skip to content

Commit 7d95f19

Browse files
author
gclm
committed
fix(修改 github hosts 错误):
1. 增加备份hosts 2. 从替换编程追加
1 parent 0e38e3e commit 7d95f19

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

centos.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ dnf install -y curl wget vim
2323

2424
# 增加github hosts
2525
echo "==> 增加github hosts"
26-
cat>/etc/hosts<<EOF
26+
cp /etc/hosts /etc/hosts.bak
27+
cat>>/etc/hosts<<EOF
2728
# 代理
2829
151.101.0.133 raw.githubusercontent.com
2930
199.232.68.133 raw.githubusercontent.com

0 commit comments

Comments
 (0)