From dc8c26d5a7bc65b40862e739921bbec3edb870d0 Mon Sep 17 00:00:00 2001 From: ljf Date: Wed, 19 Sep 2018 17:02:29 +0200 Subject: [PATCH] [fix] Add some dependencies --- scripts/_common.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index b0b88b7..9bed636 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -88,11 +88,15 @@ function install_dependencies() { if is_jessie ; then sudo echo "deb http://http.debian.net/debian jessie-backports main" | sudo tee /etc/apt/sources.list.d/jessie-backport.list + apt-get update + ynh_install_app_dependencies curl postgresql odoo xfonts-75dpi xfonts-base wkhtmltopdf node-less python-xlrd python3-dev gcc libldap2-dev libssl-dev libsasl2-dev python3-pip + pip3 install pyldap + fi + if is_stretch ; then + sudo echo "deb http://http.debian.net/debian stretch-backports main" | sudo tee /etc/apt/sources.list.d/stretch-backport.list + apt-get update + ynh_install_app_dependencies curl postgresql odoo xfonts-75dpi xfonts-base wkhtmltopdf node-less python-xlrd python3-dev gcc libldap2-dev libssl-dev libsasl2-dev python3-pip python3-num2words python3-pyldap python3-phonenumbers fi - apt-get update - - ynh_install_app_dependencies curl postgresql odoo xfonts-75dpi xfonts-base wkhtmltopdf node-less python-xlrd python3-dev gcc libldap2-dev libssl-dev libsasl2-dev python3-pip - pip3 install pyldap if ! wkhtmltopdf --version | grep "wkhtmltopdf 0.12.4 (with patched qt)"; then # The debian package has a bug so we deploy a more recent version