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

manage buster during restore

This commit is contained in:
yalh76 2020-03-24 20:04:56 +01:00
parent fa276165c9
commit 262b63c1ac

View file

@ -77,11 +77,15 @@ ynh_print_info --message="Restoring user rights..."
chown -R "$app": "$final_path"
#=================================================
# INSTALL PHP
# INSTALL PHP7.3
#=================================================
ynh_print_info --message="Installing php..."
ynh_install_php --phpversion="7.3" --package="$extra_pkg_dependencies"
if [ "$(lsb_release --codename --short)" = "buster" ]; then
pkg_dependencies="$pkg_dependencies $extra_pkg_dependencies"
else
ynh_print_info --message="Installing php7.3..."
ynh_install_php --phpversion="7.3" --package="$extra_pkg_dependencies"
fi
#=================================================
# RESTORE THE PHP-FPM CONFIGURATION