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
99ea6ab9
Commit
99ea6ab9
authored
8 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Use mail rather than htdocs
parent
6183b8df
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-mailpile
+12
-12
12 additions, 12 deletions
src/freedombone-app-mailpile
with
12 additions
and
12 deletions
src/freedombone-app-mailpile
+
12
−
12
View file @
99ea6ab9
...
...
@@ -83,7 +83,7 @@ function upgrade_mailpile {
read_config_param
"MAILPILE_DOMAIN_NAME"
function_check set_repo_commit
set_repo_commit /var/www/
$MAILPILE_DOMAIN_NAME
/
htdocs
"mailpile commit"
"
$MAILPILE_COMMIT
"
$MAILPILE_REPO
set_repo_commit /var/www/
$MAILPILE_DOMAIN_NAME
/
mail
"mailpile commit"
"
$MAILPILE_COMMIT
"
$MAILPILE_REPO
}
function
backup_local_mailpile
{
...
...
@@ -155,11 +155,11 @@ function install_mailpile {
fi
cd
/var/www/
$MAILPILE_DOMAIN_NAME
if
[
-d
/var/www/
$MAILPILE_DOMAIN_NAME
/
htdocs
]
;
then
rm
-rf
/var/www/
$MAILPILE_DOMAIN_NAME
/
htdocs
if
[
-d
/var/www/
$MAILPILE_DOMAIN_NAME
/
mail
]
;
then
rm
-rf
/var/www/
$MAILPILE_DOMAIN_NAME
/
mail
fi
git_clone
$MAILPILE_REPO
htdocs
cd
htdocs
git_clone
$MAILPILE_REPO
mail
cd
mail
git checkout
$MAILPILE_COMMIT
-b
$MAILPILE_COMMIT
set_completion_param
"mailpile commit"
"
$MAILPILE_COMMIT
"
...
...
@@ -169,11 +169,11 @@ function install_mailpile {
fi
pip
install
-r
requirements.txt
adduser
--system
--home
=
/var/www/
$MAILPILE_DOMAIN_NAME
/
htdocs
/
--group
mailpile
chown
-R
mailpile: /var/www/
$MAILPILE_DOMAIN_NAME
/
htdocs
/
adduser
--system
--home
=
/var/www/
$MAILPILE_DOMAIN_NAME
/
mail
/
--group
mailpile
chown
-R
mailpile: /var/www/
$MAILPILE_DOMAIN_NAME
/
mail
/
# create folders and tags
su
-c
"cd /var/www/
$MAILPILE_DOMAIN_NAME
/
htdocs
&& ./mp --setup"
- mailpile
su
-c
"cd /var/www/
$MAILPILE_DOMAIN_NAME
/
mail
&& ./mp --setup"
- mailpile
echo
'[Unit]'
>
/etc/systemd/system/mailpile.service
echo
'Description=Mailpile Email Client'
>>
/etc/systemd/system/mailpile.service
...
...
@@ -182,8 +182,8 @@ function install_mailpile {
echo
'[Service]'
>>
/etc/systemd/system/mailpile.service
echo
'User=mailpile'
>>
/etc/systemd/system/mailpile.service
echo
'Group=mailpile'
>>
/etc/systemd/system/mailpile.service
echo
"WorkingDirectory=/var/www/
$MAILPILE_DOMAIN_NAME
/
htdocs
"
>>
/etc/systemd/system/mailpile.service
echo
"ExecStart=/var/www/
$MAILPILE_DOMAIN_NAME
/
htdocs
/mp --www=0.0.0.0:
${
MAILPILE_PORT
}
--wait"
>>
/etc/systemd/system/mailpile.service
echo
"WorkingDirectory=/var/www/
$MAILPILE_DOMAIN_NAME
/
mail
"
>>
/etc/systemd/system/mailpile.service
echo
"ExecStart=/var/www/
$MAILPILE_DOMAIN_NAME
/
mail
/mp --www=0.0.0.0:
${
MAILPILE_PORT
}
--wait"
>>
/etc/systemd/system/mailpile.service
echo
'Restart=always'
>>
/etc/systemd/system/mailpile.service
echo
'RestartSec=10'
>>
/etc/systemd/system/mailpile.service
echo
''
>>
/etc/systemd/system/mailpile.service
...
...
@@ -214,7 +214,7 @@ function install_mailpile {
echo
' error_log off;'
>>
$mailpile_nginx_site
echo
''
>>
$mailpile_nginx_site
echo
' # Root'
>>
$mailpile_nginx_site
echo
" root /var/www/
$MAILPILE_DOMAIN_NAME
/
htdocs
;"
>>
$mailpile_nginx_site
echo
" root /var/www/
$MAILPILE_DOMAIN_NAME
/
mail
;"
>>
$mailpile_nginx_site
echo
''
>>
$mailpile_nginx_site
echo
' location / {'
>>
$mailpile_nginx_site
function_check nginx_limits
...
...
@@ -239,7 +239,7 @@ function install_mailpile {
echo
' error_log off;'
>>
$mailpile_nginx_site
echo
''
>>
$mailpile_nginx_site
echo
' # Root'
>>
$mailpile_nginx_site
echo
" root /var/www/
$MAILPILE_DOMAIN_NAME
/
htdocs
;"
>>
$mailpile_nginx_site
echo
" root /var/www/
$MAILPILE_DOMAIN_NAME
/
mail
;"
>>
$mailpile_nginx_site
echo
''
>>
$mailpile_nginx_site
echo
' location / {'
>>
$mailpile_nginx_site
function_check nginx_limits
...
...
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