Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Context Sensitive Group
freedombone
Commits
8c12c0f1
Commit
8c12c0f1
authored
7 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Edit keyserver sync servers
parent
8b39a6d2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/freedombone-app-keyserver
+23
-15
23 additions, 15 deletions
src/freedombone-app-keyserver
with
23 additions
and
15 deletions
src/freedombone-app-keyserver
+
23
−
15
View file @
8c12c0f1
...
...
@@ -56,6 +56,15 @@ function configure_firewall_for_keyserver {
mark_completed
$FUNCNAME
}
function
keyserver_reset_database
{
if
[
-d
/var/lib/sks/DB
]
;
then
rm
-rf
/var/lib/sks/DB
fi
sks build
chown
-Rc
debian-sks: /var/lib/sks
systemctl restart sks
}
function
logging_on_keyserver
{
echo
-n
''
}
...
...
@@ -192,7 +201,7 @@ function keyserver_import_keys {
cd
/var/lib/sks
echo
$'Building the keyserver database from the downloaded dump'
sks build
keyserver_reset_database
}
function
keyserver_sync
{
...
...
@@ -243,6 +252,12 @@ function keyserver_sync {
--msgbox
$"Keyserver added"
6 40
}
function
keyserver_edit
{
editor /etc/sks/membership
chown
-Rc
debian-sks: /etc/sks/membership
systemctl restart sks
}
function
configure_interactive_keyserver
{
while
true
do
...
...
@@ -250,10 +265,11 @@ function configure_interactive_keyserver {
trap
"rm -f
$data
"
0 1 2 5 15
dialog
--backtitle
$"Freedombone Control Panel"
\
--title
$"SKS Keyserver"
\
--radiolist
$"Choose an operation:"
1
1
70
3
\
--radiolist
$"Choose an operation:"
1
2
70
4
\
1
$"Sync with other keyserver"
off
\
2
$"Import public keys database"
off
\
3
$"Exit"
on 2>
$data
2
$"Edit sync keyservers"
off
\
3
$"Import public keys database"
off
\
4
$"Exit"
on 2>
$data
sel
=
$?
case
$sel
in
1
)
return
;;
...
...
@@ -261,21 +277,13 @@ function configure_interactive_keyserver {
esac
case
$(
cat
$data
)
in
1
)
keyserver_sync
;;
2
)
keyserver_import_keys
;;
3
)
break
;;
2
)
keyserver_edit
;;
3
)
keyserver_import_keys
;;
4
)
break
;;
esac
done
}
function
keyserver_reset_database
{
if
[
-d
/var/lib/sks/DB
]
;
then
rm
-rf
/var/lib/sks/DB
fi
sks build
chown
-Rc
debian-sks: /var/lib/sks
systemctl restart sks
}
function
install_keyserver
{
apt-get
-qy
install
build-essential gcc ocaml libdb-dev wget sks
keyserver_reset_database
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment