1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pixelfed_ynh.git synced 2024-09-03 20:06:04 +02:00

Do not install php7.3 if on Buster, it's already there

This commit is contained in:
Alexandre Aubin 2020-03-14 22:30:27 +00:00
parent e8a26ea115
commit c2f96cf3dc

View file

@ -56,6 +56,17 @@ ynh_app_setting_set --app="$app" --key=app_key --value="$app_key"
#================================================= #=================================================
# STANDARD MODIFICATIONS # STANDARD MODIFICATIONS
#=================================================
# INSTALL PHP7.3 when on Stretch
#=================================================
if [ "$(lsb_release --codename --short)" = "stretch" ]; then
ynh_print_info --message="Installing php7.3..."
ynh_install_php --phpversion="7.3" --package="$extra_pkg_dependencies"
else
pkg_dependencies="$pkg_dependencies $extra_pkg_dependencies"
fi
#================================================= #=================================================
# INSTALL DEPENDENCIES # INSTALL DEPENDENCIES
#================================================= #=================================================
@ -63,13 +74,6 @@ ynh_print_info --message="Installing dependencies..."
ynh_install_app_dependencies "$pkg_dependencies" ynh_install_app_dependencies "$pkg_dependencies"
#=================================================
# INSTALL PHP
#=================================================
ynh_print_info --message="Installing php..."
ynh_install_php --phpversion="7.3" --package="$extra_pkg_dependencies"
#================================================= #=================================================
# CREATE A POSTGRESQL DATABASE # CREATE A POSTGRESQL DATABASE
#================================================= #=================================================