更新 run.sh
CI / Build (push) Successful in 4s Details

This commit is contained in:
root 2024-06-30 20:38:55 +08:00
parent 10350189f8
commit a8ace53898
1 changed files with 10 additions and 0 deletions

10
run.sh
View File

@ -8,4 +8,14 @@ DOMAIN="pms.docker"
# 检查是否已经存在该DNS记录
if ! grep -q "$IP\s*$DOMAIN" /etc/hosts; then
echo "$IP $DOMAIN" >> /etc/hosts
fi
# 要添加的IP地址
githubIP="140.82.114.3"
# 要解析的域名
githubDOMAIN="github.com"
# 检查是否已经存在该DNS记录
if ! grep -q "$githubIP\s*$githubDOMAIN" /etc/hosts; then
echo "$githubIP $githubDOMAIN" >> /etc/hosts
fi