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
30dd79a8
Commit
30dd79a8
authored
7 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Just check for gnupg directory
parent
2798401e
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-base-email
+1
-5
1 addition, 5 deletions
src/freedombone-base-email
src/freedombone-utils-keys
+0
-1
0 additions, 1 deletion
src/freedombone-utils-keys
src/freedombone-utils-setup
+0
-1
0 additions, 1 deletion
src/freedombone-utils-setup
with
1 addition
and
7 deletions
src/freedombone-base-email
+
1
−
5
View file @
30dd79a8
...
...
@@ -48,9 +48,6 @@ GPG_KEYSERVER="hkp://keys.gnupg.net"
# whether to encrypt all incoming email with your public key
GPG_ENCRYPT_STORED_EMAIL
=
"yes"
# gets set to yes if gpg keys are imported from usb
GPG_KEYS_IMPORTED
=
"no"
# optionally you can provide your exported GPG key pair here
# Note that the private key file will be deleted after use
# If these are unspecified then a new GPG key will be created
...
...
@@ -1530,13 +1527,12 @@ function configure_gpg {
gpg_dir
=
/home/
$MY_USERNAME
/.gnupg
# if gpg keys directory was previously imported from usb
echo
$"GPG keys imported:
$GPG_KEYS_IMPORTED
"
if
[
-d
$gpg_dir
]
;
then
echo
$'GPG directory exists'
else
echo
$"GPG directory
$gpg_dir
was not found"
fi
if
[
[
$GPG_KEYS_IMPORTED
==
"yes"
&&
-d
$gpg_dir
]
]
;
then
if
[
-d
$gpg_dir
]
;
then
echo
$'GPG keys were imported'
sed
-i
"s|keyserver hkp://keys.gnupg.net|keyserver
$GPG_KEYSERVER
|g"
$gpg_dir
/gpg.conf
MY_GPG_PUBLIC_KEY_ID
=
$(
gpg_pubkey_from_email
"
$MY_USERNAME
"
"
$MY_EMAIL_ADDRESS
"
)
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-utils-keys
+
0
−
1
View file @
30dd79a8
...
...
@@ -240,7 +240,6 @@ function interactive_key_recovery {
${
PROJECT_NAME
}
-recoverkey
-u
$MY_USERNAME
if
[
-d
/home/
$MY_USERNAME
/.gnupg
]
;
then
cp
-rf
/home/
$MY_USERNAME
/.gnupg /root
GPG_KEYS_IMPORTED
=
'yes'
fi
}
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-utils-setup
+
0
−
1
View file @
30dd79a8
...
...
@@ -259,7 +259,6 @@ function search_for_attached_usb_drive {
echo
$'Importing GPG keyring'
cp
-r
$USB_MOUNT
/.gnupg /home/
$MY_USERNAME
chown
-R
$MY_USERNAME
:
$MY_USERNAME
/home/
$MY_USERNAME
/.gnupg
GPG_KEYS_IMPORTED
=
"yes"
if
[
!
-f
/home/
$MY_USERNAME
/.gnupg/secring.gpg
]
;
then
echo
$'GPG files did not copy'
exit
73529
...
...
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