summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-05-01 16:15:00 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-05-01 16:15:28 +0200
commit10a3a9955f671926abd39f5ea343d821ed8de26a (patch)
tree8677918f012283eda9005ba5c14b03ad67c3fb89 /install
parentfa7f111bcf0255f428ba12d200ece6c85524d315 (diff)
downloadIshtar-10a3a9955f671926abd39f5ea343d821ed8de26a.tar.bz2
Ishtar-10a3a9955f671926abd39f5ea343d821ed8de26a.zip
Install: fix dependency and backport check
Diffstat (limited to 'install')
-rw-r--r--install/install-ishtar.sh18
1 files changed, 11 insertions, 7 deletions
diff --git a/install/install-ishtar.sh b/install/install-ishtar.sh
index 2a26dfbf8..16e758c57 100644
--- a/install/install-ishtar.sh
+++ b/install/install-ishtar.sh
@@ -75,11 +75,6 @@ EOF
fi
if [ -z "$lsb_dist" ] && [ -r /etc/debian_version ]; then
lsb_dist='debian'
- MAINBACKS=`cat /etc/apt/sources.list | grep jessie-backports |grep -v "^#"`
- ALLBACKS=`cat /etc/apt/sources.list.d/*.list | grep jessie-backports |grep -v "^#"`
- if [ "$ALLBACKS" != '' ] || [ "$MAINBACKS" != '' ]; then
- backports_activated='true';
- fi
fi
if [ -z "$lsb_dist" ] && [ -r /etc/fedora-release ]; then
lsb_dist='fedora'
@@ -110,6 +105,14 @@ EOF
;;
debian)
+ MAINBACKS=`cat /etc/apt/sources.list | grep jessie-backports |grep -v "^#"`
+ ALLBACKS=''
+ if [ "$(ls -A /etc/apt/sources.list.d/)" ]; then
+ ALLBACKS=`cat /etc/apt/sources.list.d/* | grep jessie-backports |grep -v "^#"`
+ fi
+ if [ "$ALLBACKS" != '' ] || [ "$MAINBACKS" != '' ]; then
+ backports_activated='true';
+ fi
dist_version="$(cat /etc/debian_version | sed 's/\/.*//' | sed 's/\..*//')"
case "$dist_version" in
8)
@@ -214,7 +217,7 @@ EOF
case "$choice" in
develop ) version="develop";;
master ) version="master";;
- '' ) version="stable";;
+ '' ) version="develop";;
esac
done
@@ -349,7 +352,8 @@ EOF
fi
echo "Installing Ishtar dependencies"
echo "";
- ( set -x; $sh_c 'sleep 3; apt-get install -y -q python python-django \
+ ( set -x; $sh_c 'sleep 3; apt-get install -t jessie-backports -y -q python python-django' )
+ ( set -x; $sh_c 'sleep 3; apt-get install -y -q \
python-pisa python-django-registration python-bs4 python-django-formtools\
python-tidylib python-lxml python-imaging python-html5lib\
python-psycopg2 python-gdal gettext python-unicodecsv memcached \