Skip to content
Snippets Groups Projects
Commit 79cfba46 authored by Bob Mottram's avatar Bob Mottram
Browse files

Download keyserver dump using date

Because downloading the full data will likely take longer than a day
parent 79b5bd81
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,6 @@ KEYSERVER_PORT=11371
KEYSERVER_ONION_PORT=8122
KEYSERVER_DOMAIN_NAME=
KEYSERVER_CODE=
KEYSERVER_DUMP_URL="https://keyserver.mattrude.com/dump/current/"
keyserver_variables=(ONION_ONLY
MY_USERNAME
......@@ -139,7 +138,7 @@ function keyserver_import_keys {
dialog --title $"Import public keys database" \
--backtitle $"Freedombone Control Panel" \
--defaultno \
--yesno $"\nThis will download multiple gigabytes of data and so will take a long time.\n\nContinue?" 10 60
--yesno $"\nThis will download many gigabytes of data and so depending on your bandwidth it could take several days.\n\nContinue?" 10 60
sel=$?
case $sel in
1) return;;
......@@ -149,7 +148,9 @@ function keyserver_import_keys {
mkdir -p /var/lib/sks/dump
fi
cd /var/lib/sks/dump
echo $'Getting keyserver dump. This may take a few hours or longer, so be patient.'
echo $'Getting keyserver dump. This may take a few days or longer, so be patient.'
rm -rf cd /var/lib/sks/dump/*
KEYSERVER_DUMP_URL="https://keyserver.mattrude.com/dump/$(date +%F)/"
wget -crp -e robots=off --level=1 --cut-dirs=3 -nH \
-A pgp,txt $KEYSERVER_DUMP_URL
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment