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
1604af36
Commit
1604af36
authored
9 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Don't need subtraction
parent
c11f5ce8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/freedombone
+0
-1
0 additions, 1 deletion
src/freedombone
src/freedombone-config
+0
-1
0 additions, 1 deletion
src/freedombone-config
src/freedombone-recoverkey
+0
-1
0 additions, 1 deletion
src/freedombone-recoverkey
with
0 additions
and
3 deletions
src/freedombone
+
0
−
1
View file @
1604af36
...
...
@@ -3819,7 +3819,6 @@ function backup_to_friends_servers {
echo ' if [ $REMOTE_DOMAIN ]; then' >> /usr/bin/$BACKUP_TO_FRIENDS_SCRIPT_NAME
echo " cd /home/$MY_USERNAME/.gnupg_fragments" >> /usr/bin/$BACKUP_TO_FRIENDS_SCRIPT_NAME
echo ' no_of_shares=$(ls -afq keyshare.asc.* | wc -l)' >> /usr/bin/$BACKUP_TO_FRIENDS_SCRIPT_NAME
echo ' no_of_shares=$((no_of_shares - 2))' >> /usr/bin/$BACKUP_TO_FRIENDS_SCRIPT_NAME
echo ' if (( no_of_shares > 0 )); then' >> /usr/bin/$BACKUP_TO_FRIENDS_SCRIPT_NAME
echo ' # Pick a share index based on the domain name' >> /usr/bin/$BACKUP_TO_FRIENDS_SCRIPT_NAME
echo ' # This ensures that the same share is always given to the same domain' >> /usr/bin/$BACKUP_TO_FRIENDS_SCRIPT_NAME
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-config
+
0
−
1
View file @
1604af36
...
...
@@ -279,7 +279,6 @@ function reconstruct_key {
fi
cd
/home/
$MY_USERNAME
/.gnupg_fragments
no_of_shares
=
$(
ls
-afq
keyshare.asc.
*
|
wc
-l
)
no_of_shares
=
$((
no_of_shares
-
2
))
if
((
no_of_shares < 4
))
;
then
dialog
--title
"Encryption keys"
--msgbox
'Not enough fragments to reconstruct the key'
6 70
exit
7348
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-recoverkey
+
0
−
1
View file @
1604af36
...
...
@@ -128,7 +128,6 @@ fi
# was anything downloaded?
cd
$FRAGMENTS_DIR
no_of_shares
=
$(
ls
-afq
keyshare.asc.
*
|
wc
-l
)
no_of_shares
=
$((
no_of_shares
-
2
))
if
((
no_of_shares
==
0
))
;
then
echo
'No key fragments were retrieved'
exit
76882
...
...
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