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
97d6524c
Commit
97d6524c
authored
7 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Use the i2p user for bdsmail daemon
parent
6562d131
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
+7
-10
7 additions, 10 deletions
src/freedombone-app-bdsmail
with
7 additions
and
10 deletions
src/freedombone-app-bdsmail
+
7
−
10
View file @
97d6524c
...
...
@@ -86,7 +86,7 @@ function upgrade_bdsmail {
# update to the next commit
set_repo_commit /etc/bdsmail
"bdsmail commit"
"
$BDSMAIL_COMMIT
"
$BDSMAIL_REPO
chown
-R
bdsmail:bdsmail
/etc/bdsmail
chown
-R
i2psvc:i2psvc
/etc/bdsmail
}
function
backup_local_bdsmail
{
...
...
@@ -118,7 +118,7 @@ function restore_local_bdsmail {
fi
cp
-rp
$temp_restore_dir
/
*
$bdsmail_dir
fi
chown
-R
bdsmail:bdsmail
$bdsmail_dir
chown
-R
i2psvc:i2psvc
$bdsmail_dir
rm
-rf
$temp_restore_dir
fi
...
...
@@ -154,7 +154,7 @@ function restore_remote_bdsmail {
fi
cp
-rp
$temp_restore_dir
/
*
$bdsmail_dir
fi
chown
-R
bdsmail:bdsmail
$bdsmail_dir
chown
-R
i2psvc:i2psvc
$bdsmail_dir
rm
-rf
$temp_restore_dir
fi
...
...
@@ -167,7 +167,6 @@ function remove_bdsmail {
systemctl disable bdsmail
rm
/etc/systemd/system/bdsmail.service
fi
userdel
-r
bdsmail
remove_i2p
remove_app bdsmail
...
...
@@ -202,8 +201,6 @@ function install_bdsmail {
git checkout
$BDSMAIL_COMMIT
-b
$BDSMAIL_COMMIT
set_completion_param
"bdsmail commit"
"
$BDSMAIL_COMMIT
"
useradd
-d
/etc/bdsmail
-s
/bin/false bdsmail
make
GOROOT
=
/home/go/go
${
GO_VERSION
}
if
[
!
-f
/etc/bdsmail/bin/bdsconfig
]
;
then
echo
$'Unable to make bdsmail'
...
...
@@ -232,17 +229,17 @@ function install_bdsmail {
echo
''
>>
/etc/systemd/system/bdsmail.service
echo
'[Service]'
>>
/etc/systemd/system/bdsmail.service
echo
'Type=simple'
>>
/etc/systemd/system/bdsmail.service
echo
'User=
bdsmail
'
>>
/etc/systemd/system/bdsmail.service
echo
'Group=
bdsmail
'
>>
/etc/systemd/system/bdsmail.service
echo
'User=
i2psvc
'
>>
/etc/systemd/system/bdsmail.service
echo
'Group=
i2psvc
'
>>
/etc/systemd/system/bdsmail.service
echo
'WorkingDirectory=/etc/bdsmail'
>>
/etc/systemd/system/bdsmail.service
echo
'ExecStart=/etc/bdsmail/bin/maild /etc/bdsmail/config.ini'
>>
/etc/systemd/system/bdsmail.service
echo
'Restart=always'
>>
/etc/systemd/system/bdsmail.service
echo
'Environment="USER=
bdsmail
"'
>>
/etc/systemd/system/bdsmail.service
echo
'Environment="USER=
i2psvc
"'
>>
/etc/systemd/system/bdsmail.service
echo
''
>>
/etc/systemd/system/bdsmail.service
echo
'[Install]'
>>
/etc/systemd/system/bdsmail.service
echo
'WantedBy=multi-user.target'
>>
/etc/systemd/system/bdsmail.service
systemctl
enable
bdsmail
chown
-R
bdsmail:bdsmail
/etc/bdsmail
chown
-R
i2psvc:i2psvc
/etc/bdsmail
systemctl start bdsmail
echo
'#!/usr/bin/env python2'
>
/etc/bdsmail/get_address
...
...
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