update with psycopg2 package dependency
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# Django Setup for Ubuntu 18.04
|
# Django Setup for Raspbian Jessie
|
||||||
## Install
|
## Install
|
||||||
```bash
|
```bash
|
||||||
vim vars
|
vim vars
|
||||||
|
|||||||
30
install.sh
30
install.sh
@@ -8,7 +8,7 @@ source vars
|
|||||||
|
|
||||||
# check if root
|
# check if root
|
||||||
if [[ $EUID -ne 0 ]]; then
|
if [[ $EUID -ne 0 ]]; then
|
||||||
echo -e "This script must be run as root"
|
echo -e "This script must be run as root"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -21,7 +21,9 @@ if [ ! -d $logdir ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# install dependencies
|
# 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[@]};
|
for package in ${packages[@]};
|
||||||
do
|
do
|
||||||
echo -e "\tInstalling $package"
|
echo -e "\tInstalling $package"
|
||||||
@@ -33,18 +35,18 @@ do
|
|||||||
done
|
done
|
||||||
|
|
||||||
# firewall
|
# firewall
|
||||||
#ports=(22 80 443)
|
ports=(22 80 443)
|
||||||
#for port in ${ports[@]};
|
for port in ${ports[@]};
|
||||||
#do
|
do
|
||||||
# echo -e "ufw allow $port/tcp" > $firelogloc
|
echo -e "ufw allow $port/tcp" > 1>> $firelogloc 2>> $firelogloc
|
||||||
# ufw allow $port/tcp 1>> $firelogloc 2>> $firelogloc
|
ufw allow $port/tcp 1>> $firelogloc 2>> $firelogloc
|
||||||
# if [ $? -ne 0 ] ; then
|
if [ $? -ne 0 ] ; then
|
||||||
# echo -e "\tfirewall failed to update port $port correctly. $firelogmsg"
|
echo -e "\tfirewall failed to update port $port correctly. $firelogmsg"
|
||||||
# exit 1
|
exit 1
|
||||||
# fi
|
fi
|
||||||
#done
|
done
|
||||||
#echo -e "\tEnabling ufw"
|
echo -e "\tEnabling ufw"
|
||||||
#ufw --force enable 1>> $firelogloc 2>> $firelogloc
|
ufw --force enable 1>> $firelogloc 2>> $firelogloc
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Python
|
# Python
|
||||||
|
|||||||
Reference in New Issue
Block a user