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

keyserver configuration menu style

parent 7f027206
No related branches found
No related tags found
No related merge requests found
......@@ -531,31 +531,24 @@ function keyserver_remove_key {
}
function configure_interactive_keyserver {
W=(1 $"Remove a key"
2 $"Sync with other keyserver"
3 $"Edit sync keyservers")
while true
do
data=$(mktemp 2>/dev/null)
dialog --backtitle $"Freedombone Control Panel" \
--title $"SKS Keyserver" \
--radiolist $"Choose an operation:" 12 70 4 \
1 $"Remove a key" off \
2 $"Sync with other keyserver" off \
3 $"Edit sync keyservers" off \
4 $"Exit" on 2> "$data"
sel=$?
case $sel in
1) rm -f "$data"
return;;
255) rm -f "$data"
return;;
esac
case $(cat "$data") in
# shellcheck disable=SC2068
selection=$(dialog --backtitle $"Freedombone Administrator Control Panel" --title $"SKS Keyserver" --menu $"Choose an operation, or ESC to exit:" 11 60 3 "${W[@]}" 3>&2 2>&1 1>&3)
if [ ! "$selection" ]; then
break
fi
case $selection in
1) keyserver_remove_key;;
2) keyserver_sync;;
3) keyserver_edit;;
4) rm -f "$data"
break;;
esac
rm -f "$data"
done
}
......
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