diff --git a/scripts/install b/scripts/install index 4d865d4..48fe1ec 100644 --- a/scripts/install +++ b/scripts/install @@ -62,7 +62,11 @@ ynh_app_setting_set "$app" is_public "$is_public" # INSTALL DEPENDENCIES #================================================= -ynh_install_app_dependencies php5-gd php5-zip +pkg_dependencies=php5-gd +if [ "$(lsb_release --codename --short)" != "jessie" ]; then + pkg_dependencies="$pkg_dependencies php-zip" +fi +ynh_install_app_dependencies $pkg_dependencies #================================================= # CREATE A MYSQL DATABASE diff --git a/scripts/restore b/scripts/restore index 12bde32..0dc2c8d 100644 --- a/scripts/restore +++ b/scripts/restore @@ -55,7 +55,11 @@ test ! -d $final_path \ #================================================= # Define and install dependencies -ynh_install_app_dependencies php5-gd php5-zip +pkg_dependencies=php5-gd +if [ "$(lsb_release --codename --short)" != "jessie" ]; then + pkg_dependencies="$pkg_dependencies php-zip" +fi +ynh_install_app_dependencies $pkg_dependencies #================================================= # RESTORE THE NGINX CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index 786de4a..2b7d23a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -120,7 +120,11 @@ ynh_add_fpm_config # INSTALL DEPENDENCIES #================================================= -ynh_install_app_dependencies php5-gd php5-zip +pkg_dependencies=php5-gd +if [ "$(lsb_release --codename --short)" != "jessie" ]; then + pkg_dependencies="$pkg_dependencies php-zip" +fi +ynh_install_app_dependencies $pkg_dependencies #================================================= # SPECIFIC UPGRADE