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
1ad07c80
Commit
1ad07c80
authored
8 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Checking of the email address
parent
1ee0529a
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-base-email
+26
-21
26 additions, 21 deletions
src/freedombone-base-email
with
26 additions
and
21 deletions
src/freedombone-base-email
+
26
−
21
View file @
1ad07c80
...
...
@@ -73,6 +73,29 @@ GPGIT_COMMIT='583dc76119f19420f8a33f606744faa7c8922738'
# refresh gpg keys every few hours
REFRESH_GPG_KEYS_HOURS
=
2
function
check_email_address_exists
{
read_config_param ONION_ONLY
read_config_param MY_USERNAME
read_config_param DEFAULT_DOMAIN_NAME
read_config_param MY_EMAIL_ADDRESS
read_config_param DH_KEYLENGTH
if
[
!
$MY_USERNAME
]
;
then
echo
$'No username for email installation'
exit
73672
fi
if
[
!
$DEFAULT_DOMAIN_NAME
]
;
then
echo
$'No default domain name for email installation'
exit
57634
fi
my_email
=
"
$MY_EMAIL_ADDRESS
"
if
[
${#
my_email
}
-lt
3
]
;
then
MY_EMAIL_ADDRESS
=
${
MY_USERNAME
}
@
${
DEFAULT_DOMAIN_NAME
}
write_config_param
"MY_EMAIL_ADDRESS"
"
$MY_EMAIL_ADDRESS
"
fi
}
function
backup_email
{
echo
''
}
...
...
@@ -1490,6 +1513,8 @@ function configure_gpg {
fi
apt-get
-yq
install
gnupg
check_email_address_exists
gpg_dir
=
/home/
$MY_USERNAME
/.gnupg
# if gpg keys directory was previously imported from usb
...
...
@@ -1643,27 +1668,7 @@ function install_email {
return
fi
read_config_param ONION_ONLY
read_config_param MY_USERNAME
read_config_param DEFAULT_DOMAIN_NAME
read_config_param MY_EMAIL_ADDRESS
read_config_param DH_KEYLENGTH
if
[
!
$MY_USERNAME
]
;
then
echo
$'No username for email installation'
exit
73672
fi
if
[
!
$DEFAULT_DOMAIN_NAME
]
;
then
echo
$'No default domain name for email installation'
exit
57634
fi
my_email
=
"
$MY_EMAIL_ADDRESS
"
if
[
${#
my_email
}
-lt
3
]
;
then
MY_EMAIL_ADDRESS
=
${
MY_USERNAME
}
@
${
DEFAULT_DOMAIN_NAME
}
write_config_param
"MY_EMAIL_ADDRESS"
"
$MY_EMAIL_ADDRESS
"
fi
check_email_address_exists
install_email_basic
#install_email_with_tor
...
...
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