mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
Install/remove php only on stretch
This commit is contained in:
parent
6883bd908d
commit
36f1485e87
4 changed files with 19 additions and 10 deletions
|
@ -56,9 +56,11 @@ ynh_app_setting_set --app=$app --key=user_home --value=$user_home
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Installing dependencies..." --weight=60
|
ynh_script_progression --message="Installing dependencies..." --weight=60
|
||||||
|
|
||||||
ynh_install_app_dependencies $pkg_dependencies
|
if [ "$(lsb_release --codename --short)" = "buster" ]; then
|
||||||
|
pkg_dependencies="$pkg_dependencies $extra_pkg_dependencies"
|
||||||
ynh_install_php --phpversion="$YNH_PHP_VERSION" --package="$extra_pkg_dependencies"
|
else
|
||||||
|
ynh_install_php --phpversion="$YNH_PHP_VERSION" --package="$extra_pkg_dependencies"
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CREATE A MYSQL DATABASE
|
# CREATE A MYSQL DATABASE
|
||||||
|
|
|
@ -30,6 +30,10 @@ ynh_script_progression --message="Removing dependencies..." --weight=20
|
||||||
# Remove metapackage and its dependencies
|
# Remove metapackage and its dependencies
|
||||||
ynh_remove_app_dependencies
|
ynh_remove_app_dependencies
|
||||||
|
|
||||||
|
if [ "$(lsb_release --codename --short)" = "stretch" ]; then
|
||||||
|
ynh_remove_php
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# REMOVE THE MYSQL DATABASE
|
# REMOVE THE MYSQL DATABASE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -93,10 +93,11 @@ ynh_restore_file --origin_path="/etc/php/$YNH_PHP_VERSION/fpm/pool.d/$app.conf"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Reinstalling dependencies..." --weight=60
|
ynh_script_progression --message="Reinstalling dependencies..." --weight=60
|
||||||
|
|
||||||
# Define and install dependencies
|
if [ "$(lsb_release --codename --short)" = "buster" ]; then
|
||||||
ynh_install_app_dependencies $pkg_dependencies
|
pkg_dependencies="$pkg_dependencies $extra_pkg_dependencies"
|
||||||
|
else
|
||||||
ynh_install_php --phpversion="$YNH_PHP_VERSION" --package="$extra_pkg_dependencies"
|
ynh_install_php --phpversion="$YNH_PHP_VERSION" --package="$extra_pkg_dependencies"
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE CRON FILE
|
# RESTORE THE CRON FILE
|
||||||
|
|
|
@ -137,9 +137,11 @@ path_url=$(ynh_normalize_url_path --path_url=$path_url)
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Upgrading dependencies..." --weight=7
|
ynh_script_progression --message="Upgrading dependencies..." --weight=7
|
||||||
|
|
||||||
ynh_install_app_dependencies $pkg_dependencies
|
if [ "$(lsb_release --codename --short)" = "buster" ]; then
|
||||||
|
pkg_dependencies="$pkg_dependencies $extra_pkg_dependencies"
|
||||||
ynh_install_php --phpversion="$YNH_PHP_VERSION" --package="$extra_pkg_dependencies"
|
else
|
||||||
|
ynh_install_php --phpversion="$YNH_PHP_VERSION" --package="$extra_pkg_dependencies"
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STANDARD UPGRADE STEPS
|
# STANDARD UPGRADE STEPS
|
||||||
|
|
Loading…
Add table
Reference in a new issue