Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ URL=https://github.com/digitalocean/netbox/archive/v${VERSION}.tar.gz
CURDIR=`pwd`

# Install pre-requisites
sudo apt-get install -y postgresql libpq-dev python-psycopg2
sudo apt-get install -y postgresql libpq-dev python3-psycopg2

# Setup postgres
sudo -u postgres psql < ${CURDIR}/conf/postgres.conf

# Install app pre-requisites
sudo apt-get install -y python2.7 python-dev python-pip libxml2-dev libxslt1-dev libffi-dev graphviz libpq-dev libssl-dev
sudo apt-get install -y python2.7 python-dev python3-pip libxml2-dev libxslt1-dev libffi-dev graphviz libpq-dev libssl-dev
sudo pip install --upgrade pip

# Download and install app
Expand Down Expand Up @@ -57,4 +57,4 @@ sudo cp ${CURDIR}/conf/gunicorn_config.py /opt/netbox/
sudo cp ${CURDIR}/conf/supervisor_netbox.conf /etc/supervisor/conf.d/netbox.conf
sudo service supervisor restart

echo "DONE"
echo "DONE"