diff --git a/scripts/install b/scripts/install index 4074896..af99ac3 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 +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 a255591..91af4a5 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 +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 71a723f..8ad431d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -116,6 +116,16 @@ ynh_system_user_create "$app" # Create a dedicated php-fpm config ynh_add_fpm_config +#================================================= +# INSTALL DEPENDENCIES +#================================================= + +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 #=================================================