summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorCyril Brulebois <cyril@debamax.com>2016-04-03 05:17:26 +0200
committerCyril Brulebois <cyril@debamax.com>2016-04-03 05:59:18 +0200
commite8a39800e8d11ac63c3ed53e95c0a3003ce578a0 (patch)
tree843b15e4c1475a6a2253ddcf078c4534c27ebabf /install
parentf99df602f341b1aca1af44b44080d054303545cd (diff)
downloadIshtar-e8a39800e8d11ac63c3ed53e95c0a3003ce578a0.tar.bz2
Ishtar-e8a39800e8d11ac63c3ed53e95c0a3003ce578a0.zip
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
Diffstat (limited to 'install')
-rwxr-xr-xinstall/install.sh13
1 files changed, 8 insertions, 5 deletions
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