From 2e86c95d4077eeee208713a706d7cba6aca59e92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Sun, 23 Sep 2018 15:10:36 +0200 Subject: [PATCH] dependencies depends of os version --- scripts/_common.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 593bfba..32d0763 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -13,6 +13,12 @@ FRESHRSS_SOURCE_URL="https://github.com/FreshRSS/FreshRSS/archive/1.11.1.tar.gz" PKGDIR=$(cd ../; pwd) +if [ "$(lsb_release --codename --short)" == "jessie" ]; then + pkg_dependencies="php5-gd" +else + pkg_dependencies="php-gd php-zip php-dom php-mbstring" +fi + # # Common helpers # @@ -33,5 +39,5 @@ extract_freshrss() { } install_freshrss_dependencies() { - ynh_install_app_dependencies php-cli php-gmp php-curl php-zip + ynh_install_app_dependencies $pkg_dependencies }