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

Add dialog asking to continue with download

parent 18ad18de
No related branches found
No related tags found
No related merge requests found
......@@ -182,11 +182,20 @@ function install_interactive_keyserver {
}
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
sel=$?
case $sel in
1) return;;
255) return;;
esac
if [ ! -d /var/lib/sks/dump ]; then
mkdir -p /var/lib/sks/dump
fi
cd /var/lib/sks/dump
echo $'Getting keyserver dump. This may take a few hours, so be patient.'
echo $'Getting keyserver dump. This may take a few hours or longer, so be patient.'
wget -crp -e robots=off --level=1 --cut-dirs=3 -nH \
-A pgp,txt $KEYSERVER_DUMP_URL
......@@ -203,7 +212,7 @@ function configure_interactive_keyserver {
dialog --backtitle $"Freedombone Control Panel" \
--title $"SKS Keyserver" \
--radiolist $"Choose an operation:" 10 70 2 \
1 $"Import keys database" off \
1 $"Import public keys database" off \
2 $"Exit" on 2> $data
sel=$?
case $sel in
......
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