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
fd21416d
Commit
fd21416d
authored
6 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Tidying
parent
37bf2e10
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-babybuddy
+11
-4
11 additions, 4 deletions
src/freedombone-app-babybuddy
with
11 additions
and
4 deletions
src/freedombone-app-babybuddy
+
11
−
4
View file @
fd21416d
...
...
@@ -239,13 +239,16 @@ function remove_babybuddy {
remove_nodejs babybuddy
if
[
-d
"/var/www/
$BABYBUDDY_DOMAIN_NAME
"
]
;
then
rm
-rf
"/var/www/
$BABYBUDDY_DOMAIN_NAME
"
fi
if
[
-f
"/etc/nginx/sites-available/
$BABYBUDDY_DOMAIN_NAME
"
]
;
then
rm
"/etc/nginx/sites-available/
$BABYBUDDY_DOMAIN_NAME
"
fi
if
[
-f
/etc/uwsgi/apps-available/babybuddy.ini
]
;
then
rm
/etc/uwsgi/apps-available/babybuddy.ini
systemctl restart uwsgi
fi
remove_onion_service babybuddy
"
${
BABYBUDDY_ONION_PORT
}
"
if
grep
-q
"babybuddy"
/etc/crontab
;
then
sed
-i
"/babybuddy/d"
/etc/crontab
...
...
@@ -363,15 +366,19 @@ function install_babybuddy {
exit
3568353
fi
mv
"
$pipenv_value
"
"/var/www/
$BABYBUDDY_DOMAIN_NAME
/base"
chown
-R
www-data:www-data
"/var/www/
$BABYBUDDY_DOMAIN_NAME
/base"
{
echo
'[uwsgi]'
;
echo
'plugins = python3'
;
echo
'project = babybuddy'
;
echo
"base_dir = /var/www/
$BABYBUDDY_DOMAIN_NAME
"
;
echo
''
;
echo
"
virtualenv =
$pipenv_value
"
;
echo
'
virtualenv =
%(base_dir)/base'
;
echo
'chdir = %(base_dir)/htdocs'
;
echo
'module = %(project).wsgi:application'
;
echo
'env = DJANGO_SETTINGS_MODULE=%(project).settings.production'
;
echo
'env = PYTHONPATH=/usr/lib/python3.5/dist-packages:/usr/local/lib/python3.5/dist-packages'
;
echo
'master = True'
;
echo
'vacuum = True'
;
}
>
/etc/uwsgi/apps-available/babybuddy.ini
...
...
@@ -384,7 +391,7 @@ function install_babybuddy {
if
[[
"
$ONION_ONLY
"
==
"no"
]]
;
then
nginx_http_redirect
"
$BABYBUDDY_DOMAIN_NAME
"
"index index.html"
{
echo
'upstream babybuddy {'
;
echo
' server unix:///
var/
run/uwsgi/app/babybuddy/socket;'
;
echo
' server unix:///run/uwsgi/app/babybuddy/socket;'
;
echo
'}'
;
echo
''
;
echo
'server {'
;
...
...
@@ -416,7 +423,7 @@ function install_babybuddy {
echo
'}'
;
}
>>
"
$babybuddy_nginx_site
"
else
{
echo
'upstream babybuddy {'
;
echo
' server unix:///
var/
run/uwsgi/app/babybuddy/socket;'
;
echo
' server unix:///run/uwsgi/app/babybuddy/socket;'
;
echo
'}'
;
echo
''
;
}
>
"
$babybuddy_nginx_site
"
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