update with psycopg2 package dependency

This commit is contained in:
ducoterra
2018-09-30 19:14:14 -04:00
parent 7784ac5607
commit 333bf8f3c2
2 changed files with 17 additions and 15 deletions

View File

@@ -1,4 +1,4 @@
# Django Setup for Ubuntu 18.04
# Django Setup for Raspbian Jessie
## Install
```bash
vim vars

View File

@@ -21,7 +21,9 @@ if [ ! -d $logdir ] ; then
fi
# install dependencies
packages=(gcc wget nginx ufw make sqlite3 bzip2 openssl libffi-dev libssl-dev libsqlite3-dev zlib1g-dev libbz2-dev)
packages=(gcc wget nginx ufw make sqlite3 bzip2 openssl libffi-dev libssl-dev libsqlite3-dev zlib1g-dev libbz2-dev libpq-dev)
echo -e "\tRunning apt update"
apt update
for package in ${packages[@]};
do
echo -e "\tInstalling $package"
@@ -33,18 +35,18 @@ do
done
# firewall
#ports=(22 80 443)
#for port in ${ports[@]};
#do
# echo -e "ufw allow $port/tcp" > $firelogloc
# ufw allow $port/tcp 1>> $firelogloc 2>> $firelogloc
# if [ $? -ne 0 ] ; then
# echo -e "\tfirewall failed to update port $port correctly. $firelogmsg"
# exit 1
# fi
#done
#echo -e "\tEnabling ufw"
#ufw --force enable 1>> $firelogloc 2>> $firelogloc
ports=(22 80 443)
for port in ${ports[@]};
do
echo -e "ufw allow $port/tcp" > 1>> $firelogloc 2>> $firelogloc
ufw allow $port/tcp 1>> $firelogloc 2>> $firelogloc
if [ $? -ne 0 ] ; then
echo -e "\tfirewall failed to update port $port correctly. $firelogmsg"
exit 1
fi
done
echo -e "\tEnabling ufw"
ufw --force enable 1>> $firelogloc 2>> $firelogloc
################################################################################
# Python