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
dc003428
Commit
dc003428
authored
7 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Ask for the user account password first
parent
60857daa
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-bdsmail
+23
-17
23 additions, 17 deletions
src/freedombone-app-bdsmail
with
23 additions
and
17 deletions
src/freedombone-app-bdsmail
+
23
−
17
View file @
dc003428
...
...
@@ -249,6 +249,28 @@ function install_bdsmail {
remove_bdsmail
fi
# ask to the ssh login password for the admin user
# This is then used to create the maildir account
user_account_password
=
''
data
=
$(
tempfile 2>/dev/null
)
trap
"rm -f
$data
"
0 1 2 5 15
dialog
--title
$"Password"
\
--clear
\
--passwordbox
$"Enter your ssh login password"
8 60 2>
$data
ret
=
$?
case
$ret
in
0
)
user_account_password
=
$(
cat
$data
)
;;
esac
if
[
${#
user_account_password
}
-lt
2
]
;
then
echo
''
echo
$'A password must be provided for your user account.'
echo
$'This is the same as the original ssh login password shown when you first installed the system.'
exit
3656358
fi
if
[
-d
/repos/bdsmail
]
;
then
mkdir
$BDSMAIL_DIR
cp
-r
-p
/repos/bdsmail/.
$BDSMAIL_DIR
...
...
@@ -369,23 +391,7 @@ function install_bdsmail {
bdsmail_configure_users
# ask to the ssh login password for the admin user
# This is then used to create the maildir account
data
=
$(
tempfile 2>/dev/null
)
trap
"rm -f
$data
"
0 1 2 5 15
dialog
--title
$"Password"
\
--clear
\
--passwordbox
$"Enter your ssh login password"
8 60 2>
$data
ret
=
$?
case
$ret
in
0
)
$BDSMAIL_DIR
/bin/newmail
$MY_USERNAME
/home/
$MY_USERNAME
/MailDir/i2p
$(
cat
$data
)
;;
1
)
exit
643856384
;;
255
)
exit
638762424
;;
esac
$BDSMAIL_DIR
/bin/newmail
$MY_USERNAME
/home/
$MY_USERNAME
/MailDir/i2p
"
$user_account_password
"
APP_INSTALLED
=
1
}
...
...
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