Browse Source

Update debi.sh

Brent, Bohan Yang 2 years ago
parent
commit
47ce372bb6
1 changed files with 7 additions and 2 deletions
  1. 7 2
      debi.sh

+ 7 - 2
debi.sh

@@ -212,7 +212,7 @@ password=
 authorized_keys_url=
 authorized_keys_url=
 sudo_with_password=false
 sudo_with_password=false
 timezone=UTC
 timezone=UTC
-ntp=0.debian.pool.ntp.org
+ntp=time.google.com
 disk_partitioning=true
 disk_partitioning=true
 disk=
 disk=
 force_gpt=true
 force_gpt=true
@@ -246,10 +246,15 @@ cidata=
 while [ $# -gt 0 ]; do
 while [ $# -gt 0 ]; do
     case $1 in
     case $1 in
         --cdn)
         --cdn)
-            mirror_host=deb.debian.org
             ;;
             ;;
         --aws)
         --aws)
             mirror_host=cdn-aws.deb.debian.org
             mirror_host=cdn-aws.deb.debian.org
+            ntp=time.aws.com
+            ;;
+        --cloudflare)
+            dns='1.1.1.1 1.0.0.1'
+            dns6='2606:4700:4700::1111 2606:4700:4700::1001'
+            ntp=time.cloudflare.com
             ;;
             ;;
         --aliyun)
         --aliyun)
             dns='223.5.5.5 223.6.6.6'
             dns='223.5.5.5 223.6.6.6'