From 262b63c1ac0344be018e9c2be31ff743d04740a8 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 24 Mar 2020 20:04:56 +0100 Subject: [PATCH] manage buster during restore --- scripts/restore | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/restore b/scripts/restore index 967755ef..19b2e1fe 100644 --- a/scripts/restore +++ b/scripts/restore @@ -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