clean up sqlite files

This commit is contained in:
ducoterra
2019-04-16 17:34:26 -04:00
parent 0c1542605e
commit 2af22596a4
2 changed files with 13 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
# Django Setup for Raspbian Jessie # Django Setup for Debian 9, Ubuntu. 18.04, and Raspbian Stretch
## Install ## Install
```bash ```bash
vim vars vim vars

View File

@@ -37,7 +37,7 @@ done
# Sqlite3 # Sqlite3
# Download and setup Sqlite3 and modules # Download and setup Sqlite3 and modules
################################################################################ ################################################################################
echo -e "Install Sqlite3" echo -e "Installing Sqlite3"
# fetch Sqlite # fetch Sqlite
wget -O sqlite.tar.gz $sqlink 1> $pylogloc 2>> $pylogloc 3>> $pylogloc wget -O sqlite.tar.gz $sqlink 1> $pylogloc 2>> $pylogloc 3>> $pylogloc
@@ -81,6 +81,11 @@ if [ $? -ne 0 ] ; then
exit 1 exit 1
fi fi
rm sqlite.tar.xz 1>> $pylogloc 2>> $pylogloc
rm -rf sqlite 1>> $pylogloc 2>> $pylogloc
if [ $? -ne 0 ] ; then
echo -e "Failed to remove Sqlite install files. $pylogmsg"
fi
################################################################################ ################################################################################
# Python # Python
@@ -136,19 +141,24 @@ if [ $? -ne 0 ] ; then
echo -e "pip upgrade failed. $pylogmsg" echo -e "pip upgrade failed. $pylogmsg"
exit 1 exit 1
fi fi
echo -e "\tInstalling virtualenv" echo -e "\tInstalling virtualenv"
python3 -m pip install virtualenv 1>> $pylogloc 2>> $pylogloc 3>> $pylogloc python3 -m pip install virtualenv 1>> $pylogloc 2>> $pylogloc 3>> $pylogloc
if [ $? -ne 0 ] ; then if [ $? -ne 0 ] ; then
echo -e "installing virtualenv failed. $pylogmsg" echo -e "installing virtualenv failed. $pylogmsg"
exit 1 exit 1
fi fi
cd /root/
rm python.tar.xz 1>> $pylogloc 2>> $pylogloc rm python.tar.xz 1>> $pylogloc 2>> $pylogloc
rm -rf python 1>> $pylogloc 2>> $pylogloc rm -rf python 1>> $pylogloc 2>> $pylogloc
if [ $? -ne 0 ] ; then if [ $? -ne 0 ] ; then
echo -e "Failed to remove Python install files. $pylogmsg" echo -e "Failed to remove Python install files. $pylogmsg"
fi fi
# create the sites directory
echo -e "\tCreating project directory"
mkdir /sites/
# ################################################################################ # ################################################################################
# # Django # # Django
# # Download, setup and configure Django # # Download, setup and configure Django