diff --git a/scripts/install b/scripts/install index ad24650..1d8df02 100644 --- a/scripts/install +++ b/scripts/install @@ -57,11 +57,12 @@ ynh_app_setting_set $app with_enigma $with_enigma # INSTALL DEPENDENCIES #================================================= -# jessie-backports is needed for php-net-ldap3 -grep -q -R 'jessie-backports' /etc/apt/sources.list{,.d} || { - echo "deb http://httpredir.debian.org/debian jessie-backports main" \ - | tee -a /etc/apt/sources.list.d/backports.list >/dev/null -} +if [ "$(lsb_release --codename --short)" = "jessie" ]; then + grep -q -R 'jessie-backports' /etc/apt/sources.list{,.d} || { + echo "deb http://httpredir.debian.org/debian jessie-backports main" \ + | tee -a /etc/apt/sources.list.d/backports.list >/dev/null + } +fi ynh_install_app_dependencies "$pkg_dependencies"