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
a6a91187
Commit
a6a91187
authored
8 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Displaying email hostnames
parent
010757a1
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-controlpanel
+16
-14
16 additions, 14 deletions
src/freedombone-controlpanel
with
16 additions
and
14 deletions
src/freedombone-controlpanel
+
16
−
14
View file @
a6a91187
...
...
@@ -1529,25 +1529,27 @@ function email_extra_domains {
trap
"rm -f
$data
"
0 1 2 5 15
dialog
--title
$"Email Domains"
\
--backtitle
$"Freedombone Control Panel"
\
--inputbox
$"Enter the list of email domains to use, separated by semicolons"
8 60 2>
$data
--inputbox
$"Enter the list of email domains to use, separated by semicolons"
8 60
$email_hostnames
2>
$data
sel
=
$?
case
$sel
in
0
)
emailhostnames
=
$(
<
$data
)
if
[
${#
emailhostnames
}
-gt
2
]
;
then
if
[[
"
$emailhostnames
"
==
*
"."
*
]]
;
then
if
[[
"
$emailhostnames
"
!=
*
" "
*
]]
;
then
sed
-i
"s|dc_other_hostnames=.*|dc_other_hostnames='
$emailhostnames
'|g"
/etc/exim4/update-exim4.conf.conf
update-exim4.conf
dpkg-reconfigure
--frontend
noninteractive exim4-config
systemctl restart saslauthd
dialog
--title
$"Email Domains"
\
--backtitle
$"Freedombone Control Panel"
\
--msgbox
$"Email domains were changed"
6 50
else
dialog
--title
$"Email Domains not set"
\
--backtitle
$"Freedombone Control Panel"
\
--msgbox
$"There should be no spaces in the list"
6 50
if
[[
"
$email_hostnames
"
!=
"
$emailhostnames
"
]]
;
then
if
[[
"
$emailhostnames
"
==
*
"."
*
]]
;
then
if
[[
"
$emailhostnames
"
!=
*
" "
*
]]
;
then
sed
-i
"s|dc_other_hostnames=.*|dc_other_hostnames='
$emailhostnames
'|g"
/etc/exim4/update-exim4.conf.conf
update-exim4.conf
dpkg-reconfigure
--frontend
noninteractive exim4-config
systemctl restart saslauthd
dialog
--title
$"Email Domains"
\
--backtitle
$"Freedombone Control Panel"
\
--msgbox
$"Email domains were changed"
6 50
else
dialog
--title
$"Email Domains not set"
\
--backtitle
$"Freedombone Control Panel"
\
--msgbox
$"There should be no spaces in the list"
6 50
fi
fi
fi
fi
...
...
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