Sfoglia il codice sorgente

Download keyserver dump using date

Because downloading the full data will likely take longer than a day
Bob Mottram 7 anni fa
parent
commit
79cfba462d
1 ha cambiato i file con 4 aggiunte e 3 eliminazioni
  1. 4
    3
      src/freedombone-app-keyserver

+ 4
- 3
src/freedombone-app-keyserver Vedi File

39
 KEYSERVER_ONION_PORT=8122
39
 KEYSERVER_ONION_PORT=8122
40
 KEYSERVER_DOMAIN_NAME=
40
 KEYSERVER_DOMAIN_NAME=
41
 KEYSERVER_CODE=
41
 KEYSERVER_CODE=
42
-KEYSERVER_DUMP_URL="https://keyserver.mattrude.com/dump/current/"
43
 
42
 
44
 keyserver_variables=(ONION_ONLY
43
 keyserver_variables=(ONION_ONLY
45
                      MY_USERNAME
44
                      MY_USERNAME
139
     dialog --title $"Import public keys database" \
138
     dialog --title $"Import public keys database" \
140
            --backtitle $"Freedombone Control Panel" \
139
            --backtitle $"Freedombone Control Panel" \
141
            --defaultno \
140
            --defaultno \
142
-           --yesno $"\nThis will download multiple gigabytes of data and so will take a long time.\n\nContinue?" 10 60
141
+           --yesno $"\nThis will download many gigabytes of data and so depending on your bandwidth it could take several days.\n\nContinue?" 10 60
143
     sel=$?
142
     sel=$?
144
     case $sel in
143
     case $sel in
145
         1) return;;
144
         1) return;;
149
         mkdir -p /var/lib/sks/dump
148
         mkdir -p /var/lib/sks/dump
150
     fi
149
     fi
151
     cd /var/lib/sks/dump
150
     cd /var/lib/sks/dump
152
-    echo $'Getting keyserver dump. This may take a few hours or longer, so be patient.'
151
+    echo $'Getting keyserver dump. This may take a few days or longer, so be patient.'
152
+    rm -rf cd /var/lib/sks/dump/*
153
+    KEYSERVER_DUMP_URL="https://keyserver.mattrude.com/dump/$(date +%F)/"
153
     wget -crp -e robots=off --level=1 --cut-dirs=3 -nH \
154
     wget -crp -e robots=off --level=1 --cut-dirs=3 -nH \
154
          -A pgp,txt $KEYSERVER_DUMP_URL
155
          -A pgp,txt $KEYSERVER_DUMP_URL
155
 
156