diff --git a/scripts/install b/scripts/install index 51523cc..745a2af 100644 --- a/scripts/install +++ b/scripts/install @@ -60,7 +60,7 @@ ynh_script_progression --message="Installing dependencies..." --weight=20 if [ $database == "pgsql" ] then - pkg_dependencies="$pkg_dependencies pgsql_pkg_dependencies" + pkg_dependencies="$pkg_dependencies $pgsql_pkg_dependencies" fi ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies diff --git a/scripts/restore b/scripts/restore index 5190e54..7bb5590 100644 --- a/scripts/restore +++ b/scripts/restore @@ -84,6 +84,11 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) ynh_script_progression --message="Reinstalling dependencies..." --weight=6 # Define and install dependencies +if [ $database == "pgsql" ] +then + pkg_dependencies="$pkg_dependencies $pgsql_pkg_dependencies" +fi + ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 2e9c46c..e7ab777 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -127,7 +127,12 @@ ynh_add_nginx_config #================================================= ynh_script_progression --message="Upgrading dependencies..." --weight=1 -ynh_install_app_dependencies $pkg_dependencies +if [ $database == "pgsql" ] +then + pkg_dependencies="$pkg_dependencies $pgsql_pkg_dependencies" +fi + +ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies #================================================= # PHP-FPM CONFIGURATION