summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-10-24 15:03:41 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-10-24 15:03:41 +0200
commit9e89ad86fa08ec4a007d4a34339f9f93b7701254 (patch)
treefd4b4405970228f7e92fdb03b300d134122f2006 /install
parent581dad7b027cb8d7b4ae97a9e82345f079d18f9a (diff)
downloadIshtar-9e89ad86fa08ec4a007d4a34339f9f93b7701254.tar.bz2
Ishtar-9e89ad86fa08ec4a007d4a34339f9f93b7701254.zip
Update install script for stretch
Diffstat (limited to 'install')
-rwxr-xr-xinstall/ishtar-install50
1 files changed, 49 insertions, 1 deletions
diff --git a/install/ishtar-install b/install/ishtar-install
index 36b937388..dbf5defd7 100755
--- a/install/ishtar-install
+++ b/install/ishtar-install
@@ -128,6 +128,9 @@ do_install() {
fi
dist_version="$(cat /etc/debian_version | sed 's/\/.*//' | sed 's/\..*//')"
case "$dist_version" in
+ 9)
+ dist_version="stretch"
+ ;;
8)
dist_version="jessie"
;;
@@ -282,7 +285,7 @@ EOF
# Run setup for each distro accordingly
case "$lsb_dist" in
ubuntu|debian)
- if [ "$dist_version" != "jessie" ] && [ "$dist_version" != "wheezy" ]; then
+ if [ "$dist_version" != "stretch" ] && [ "$dist_version" != "jessie" ] && [ "$dist_version" != "wheezy" ]; then
echo ""
cecho r " Sorry this script cannot manage your version of Debian/Ubuntu."
echo ""
@@ -391,6 +394,51 @@ EOF
( set -x; $sh_c 'pip install django-ajax-selects==1.4.3' )
fi
+
+ if [ "$dist_version" == "stretch" ]; then
+ if [ "$backports_activated" != 'true' ]; then
+ echo ""
+ cecho r " In order to install Ishtar you have to activate Debian backports."
+ echo " To do that:"
+ echo ""
+ echo " echo 'deb http://ftp.debian.org/debian stretch-backports main contrib' >> /etc/apt/sources.list"
+ echo ""
+ cecho p " Run again Ishtar installation script after that."
+ exit 1
+ fi
+
+ if [ "$default_db" == '127.0.0.1' ]; then
+ echo "-------------------------------------------------------------------------------";
+ cecho y "Installing postgresql"
+ echo ""
+ POSTGIS=postgresql-9.6-postgis-2.3
+ ( set -x; $sh_c 'sleep 3; apt-get install -y -q postgresql '$POSTGIS )
+ fi
+ echo "-------------------------------------------------------------------------------";
+ cecho y "Installing Ishtar dependencies"
+ echo "";
+ ( set -x; $sh_c 'sleep 3; apt-get install -t stretch-backports -y -q python-django' )
+ ( set -x; $sh_c 'sleep 3; apt-get install -y -q \
+ python-django-registration \
+ python-bs4 python-django-formtools \
+ python-tidylib python-lxml python-imaging python-html5lib \
+ python-psycopg2 python-gdal gettext python-unicodecsv memcached \
+ python-django-extra-views python-memcache python-dbf python-markdown \
+ python-reportlab django-ajax-selects python-django-extensions' )
+ echo "-------------------------------------------------------------------------------";
+ cecho y "Installing django-simple-history"
+ echo "";
+ ( set -x; $sh_c 'pip install git+https://github.com/treyhunner/django-simple-history.git@1.8.2#egg=django-simple-history' )
+ echo "-------------------------------------------------------------------------------";
+ cecho y "Installing python-secretary"
+ echo "";
+ ( set -x; $sh_c 'pip install secretary==0.2.14' )
+
+ cecho y "Installing python-pisa (not available anymore as a debian package)"
+ echo "";
+ ( set -x; $sh_c 'pip install pisa==3.0.33' )
+
+ fi
;;
esac