Skip to content
Snippets Groups Projects
Commit f61bc44f authored by Bob Mottram's avatar Bob Mottram
Browse files

Better handling of temp directory

parent 82f5bad1
No related branches found
No related tags found
No related merge requests found
...@@ -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
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment