diff --git a/install.sh b/install.sh index d12718c..5a9f1ff 100644 --- a/install.sh +++ b/install.sh @@ -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 @@ -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" \ No newline at end of file +echo "DONE"