diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2020-01-22 19:04:22 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2020-07-01 18:01:58 +0200 |
commit | ba421b42b5411331d77e41706fef543130b427bd (patch) | |
tree | 4269104e125f7c01dd52fb8d817963dcdc72b8a4 /install | |
parent | 5b3bf3f1fb37ad2a79a2ad04138746a58452e6d6 (diff) | |
download | Ishtar-ba421b42b5411331d77e41706fef543130b427bd.tar.bz2 Ishtar-ba421b42b5411331d77e41706fef543130b427bd.zip |
Remove virtualtime - adapt requirements for buster
Diffstat (limited to 'install')
-rwxr-xr-x | install/ishtar-install | 78 |
1 files changed, 76 insertions, 2 deletions
diff --git a/install/ishtar-install b/install/ishtar-install index 119dab2ad..26cd71cb0 100755 --- a/install/ishtar-install +++ b/install/ishtar-install @@ -424,6 +424,80 @@ EOF ( set -x; $sh_c 'sleep 3; apt-get install -y -q uwsgi uwsgi-plugin-python3 nginx' ) fi + if [ "$dist_version" == "buster" ]; then + if [ "$default_db" == '127.0.0.1' ]; then + echo "-------------------------------------------------------------------------------"; + cecho y "Installing postgresql" + echo "" + POSTGIS=postgresql-11-postgis-2.5 + ( set -x; $sh_c 'sleep 3; apt-get install -y -q postgresql postgresql-contrib '$POSTGIS' '$POSTGIS'-scripts postgresql-contrib-9.6' ) + fi + echo "-------------------------------------------------------------------------------"; + cecho y "Installing Ishtar dependencies" + echo ""; + + if [ "$lsb_dist" == 'debian' ]; then + ( set -x; $sh_c 'sleep 3; apt-get install -y -q \ + python3-django python3-psycopg2 \ + python3-django-registration \ + python3-pil \ + python3-xmltodict python3-requests \ + python3-pyqrcode python3-png \ + python3-gdal \ + python3-memcache \ + python3-djangorestframework \ + python3-tidylib \ + python3-lxml \ + python3-django-extra-views \ + python3-bs4 \ + python3-markdown \ + python3-ajax-select \ + python3-django-compressor \ + python3-django-formtools \ + python3-unidecode \ + python3-django-extensions \ + python3-html5lib python3-pdfrw \ # weasyprint + python3-cairosvg \ # weasyprint + python3-cairocffi python3-cffi libpangocairo-1.0-0 \ # weasyprint + python3-cssselect2 python3-tinycss2 \ # weasyprint + python3-pyphen python3-defusedxml \ # weasyprint + python3-markdown2 python3-jinja2 \ secretary + gettext memcached graphviz pandoc' ) + # python3-reportlab ? + fi + + if [ "$install_libreoffice" == 'yes' ]; then + ( set -x; $sh_c 'sleep 3; apt-get --no-install-recommends install -y -q \ + libreoffice libreoffice-script-provider-python python3-uno' ) + cp "install/libreoffice.service" "/etc/systemd/system/libreoffice.service" + systemctl daemon-reload + systemctl enable libreoffice + systemctl start libreoffice + fi + + if [ "$install_celery" == 'yes' ]; then + ( set -x; $sh_c 'sleep 3; apt-get --no-install-recommends install -y -q \ + rabbitmq-server' ) + ( set -x; $sh_c 'sleep 3; apt-get install -y -q python3-celery' ) + mkdir -p /var/log/celery/ + mkdir -p /var/run/celery/ + chown www-data:www-data /var/log/celery/ /var/run/celery/ + mkdir -p /etc/monit/conf-available/ + fi + + echo "-------------------------------------------------------------------------------"; + cecho y "Installing django-simple-history" + echo ""; + ( set -x; $sh_c 'pip3 install git+https://github.com/treyhunner/django-simple-history.git@1.8.2#egg=django-simple-history' ) + echo "-------------------------------------------------------------------------------"; + cecho y "Installing python3-secretary" + echo ""; + ( set -x; $sh_c 'pip3 install secretary==0.2.19' ) + cecho y "Installing weasyprint" + echo ""; + ( set -x; $sh_c 'pip3 install WeasyPrint==0.42.3' ) + fi + if [ "$dist_version" == "stretch" ]; then if [ "$lsb_dist" == 'debian' ]; then @@ -458,7 +532,7 @@ EOF python3-xmltodict python3-djangorestframework \ python3-tidylib python3-lxml python3-pil python3-html5lib \ python3-psycopg2 python3-gdal gettext memcached graphviz \ - python3-memcache python3-dbf python3-markdown \ + python3-memcache python3-markdown \ python3-reportlab python3-django-extensions python3-unidecode' ) fi if [ "$lsb_dist" == 'raspbian' ]; then @@ -473,7 +547,7 @@ EOF python3-xmltodict python3-djangorestframework \ python3-tidylib python3-lxml python3-imaging python3-html5lib \ python3-psycopg2 python3-gdal gettext memcached \ - python3-memcache python3-dbf python3-markdown \ + python3-memcache python3-markdown \ python3-reportlab python3-unidecode' ) fi |