1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kanboard_ynh.git synced 2024-09-03 19:36:17 +02:00

Add php-zip if not jessie

This commit is contained in:
Maniack Crudelis 2018-04-13 17:37:55 +02:00
parent ce4a591cc1
commit c6eabcb065
3 changed files with 15 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -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