From e8a39800e8d11ac63c3ed53e95c0a3003ce578a0 Mon Sep 17 00:00:00 2001 From: Cyril Brulebois Date: Sun, 3 Apr 2016 05:17:26 +0200 Subject: Add support for APT_GET and PIP environment variables. This makes it possible for admins or packagers to bypass automatic dependency installation using apt-get and pip. Example: APT_GET='echo -- apt-get' PIP='echo -- pip' install/install.sh --- install/install.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'install') diff --git a/install/install.sh b/install/install.sh index c5cf57068..42d337c0d 100755 --- a/install/install.sh +++ b/install/install.sh @@ -65,22 +65,25 @@ NGINX_ENABLE_PATH='/etc/nginx/sites-enabled/' echo "* installing dependencies" +APT_GET=${APT_GET-apt-get} +PIP=${PIP-pip} + if [ $DB_HOST = "127.0.0.1" ]; then - apt-get -q -y install postgresql postgresql-$PG_VERSION-postgis postgresql 2> /dev/null > /dev/null + $APT_GET -q -y install postgresql postgresql-$PG_VERSION-postgis postgresql 2> /dev/null > /dev/null fi -apt-get -q -y install git apg python-pip 2> /dev/null > /dev/null +$APT_GET -q -y install git apg python-pip 2> /dev/null > /dev/null -apt-get -q -y install python python-django \ +$APT_GET -q -y install python python-django \ libjs-jquery libjs-jquery-ui python-pisa python-django-registration \ python-utidylib python-lxml python-imaging python-django-south \ python-psycopg2 python-gdal gettext python-bs4 python-tidylib \ python-unicodecsv \ python-django-extra-views python-memcache python-dbf 2> /dev/null > /dev/null -apt-get -q -y install uwsgi uwsgi-plugin-python nginx memcached 2> /dev/null > /dev/null +$APT_GET -q -y install uwsgi uwsgi-plugin-python nginx memcached 2> /dev/null > /dev/null -pip install$PIP_OPTIONS BeautifulSoup4==4.3.2 +$PIP install$PIP_OPTIONS BeautifulSoup4==4.3.2 if [ -z "$DB_PASSWORD" ] then -- cgit v1.2.3