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
```bash
vim vars

View File

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