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
f61bc44f
Commit
f61bc44f
authored
6 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Better handling of temp directory
parent
82f5bad1
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
+5
-10
5 additions, 10 deletions
src/freedombone-app-babybuddy
with
5 additions
and
10 deletions
src/freedombone-app-babybuddy
+
5
−
10
View file @
f61bc44f
...
@@ -308,8 +308,11 @@ function install_babybuddy {
...
@@ -308,8 +308,11 @@ function install_babybuddy {
django-widget-tweaks plotly pandas faker
\
django-widget-tweaks plotly pandas faker
\
dj-database-url gunicorn whitenoise
\
dj-database-url gunicorn whitenoise
\
easy-thumbnails python-dotenv
\
easy-thumbnails python-dotenv
\
django-storages boto3 coveralls flake8 ipaddress
\
django-storages boto3 coveralls flake8 ipaddress
psycopg2-binary
pip3
install
psycopg2
==
"<2.7.4"
export
TEMP
=
/tmp
rm
-rf
"
$INSTALL_DIR
/babybuddy"
if
!
npm
install
-g
gulp-cli
;
then
if
!
npm
install
-g
gulp-cli
;
then
exit
3468365
exit
3468365
...
@@ -317,17 +320,14 @@ function install_babybuddy {
...
@@ -317,17 +320,14 @@ function install_babybuddy {
pipenv
install
--three
--dev
--skip-lock
pipenv
install
--three
--dev
--skip-lock
if
!
npm
install
;
then
if
!
npm
install
;
then
echo
$'Failed to run npm install'
echo
$'Failed to run npm install'
export
TEMP
=
/tmp
exit
56376832
exit
56376832
fi
fi
if
!
gulp build
;
then
if
!
gulp build
;
then
echo
$'Failed to run gulp build'
echo
$'Failed to run gulp build'
export
TEMP
=
/tmp
exit
36587356
exit
36587356
fi
fi
if
[
!
-f
babybuddy/settings/production.example.py
]
;
then
if
[
!
-f
babybuddy/settings/production.example.py
]
;
then
echo
$'File not found babybuddy/settings/production.example.py'
echo
$'File not found babybuddy/settings/production.example.py'
export
TEMP
=
/tmp
exit
36587365835
exit
36587365835
fi
fi
cp
babybuddy/settings/production.example.py babybuddy/settings/production.py
cp
babybuddy/settings/production.example.py babybuddy/settings/production.py
...
@@ -347,7 +347,6 @@ function install_babybuddy {
...
@@ -347,7 +347,6 @@ function install_babybuddy {
if
[
!
-f
"/var/www/
$BABYBUDDY_DOMAIN_NAME
/data/db.sqlite3"
]
;
then
if
[
!
-f
"/var/www/
$BABYBUDDY_DOMAIN_NAME
/data/db.sqlite3"
]
;
then
echo
$'db.sqlite3 not found'
echo
$'db.sqlite3 not found'
export
TEMP
=
/tmp
exit
24528746
exit
24528746
fi
fi
...
@@ -358,7 +357,6 @@ function install_babybuddy {
...
@@ -358,7 +357,6 @@ function install_babybuddy {
pipenv_value
=
$(
pipenv
--venv
)
pipenv_value
=
$(
pipenv
--venv
)
if
[
!
"
$pipenv_value
"
]
;
then
if
[
!
"
$pipenv_value
"
]
;
then
echo
$'No pipenv found'
echo
$'No pipenv found'
export
TEMP
=
/tmp
exit
3568353
exit
3568353
fi
fi
...
@@ -443,9 +441,6 @@ function install_babybuddy {
...
@@ -443,9 +441,6 @@ function install_babybuddy {
"
${
PROJECT_NAME
}
-pass"
-u
"
$MY_USERNAME
"
-a
babybuddy
-p
"
$BABYBUDDY_ADMIN_PASSWORD
"
"
${
PROJECT_NAME
}
-pass"
-u
"
$MY_USERNAME
"
-a
babybuddy
-p
"
$BABYBUDDY_ADMIN_PASSWORD
"
set_completion_param
"babybuddy domain"
"
$BABYBUDDY_DOMAIN_NAME
"
set_completion_param
"babybuddy domain"
"
$BABYBUDDY_DOMAIN_NAME
"
export
TEMP
=
/tmp
rm
-rf
"
$INSTALL_DIR
/babybuddy"
APP_INSTALLED
=
1
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