diff --git a/manifest.json b/manifest.json index 8c366f8..fa26fe2 100644 --- a/manifest.json +++ b/manifest.json @@ -18,7 +18,7 @@ "email": "maniackc_dev@crudelis.fr" }], "requirements": { - "yunohost": ">= 4.2.3" + "yunohost": ">= 4.3.3" }, "multi_instance": true, "services": [ diff --git a/scripts/install b/scripts/install index 3d8ac96..716b9e1 100644 --- a/scripts/install +++ b/scripts/install @@ -59,6 +59,13 @@ ynh_app_setting_set --app=$app --key=admin_mail_html --value=1 #================================================= # STANDARD MODIFICATIONS +#================================================= +# INSTALL DEPENDENCIES +#================================================= +ynh_script_progression --message="Installing dependencies..." --weight=1 + +ynh_install_app_dependencies "php${phpversion}-fpm" + #================================================= # CREATE A MYSQL DATABASE #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 30c3de3..db5936a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -98,6 +98,12 @@ if [ -z "$with_sftp" ]; then ynh_app_setting_set --app=$app --key=with_sftp --value=$with_sftp fi +# If phpversion doesn't exist, create it +if [ -z "$phpversion" ]; then + phpversion=$YNH_PHP_VERSION + ynh_app_setting_set --app=$app --key=phpversion --value=$phpversion +fi + # Cleaning legacy permissions if ynh_legacy_permissions_exists; then ynh_legacy_permissions_delete_all @@ -114,6 +120,13 @@ ynh_maintenance_mode_ON #================================================= # STANDARD UPGRADE STEPS +#================================================= +# INSTALL DEPENDENCIES +#================================================= +ynh_script_progression --message="Installing dependencies..." --weight=1 + +ynh_install_app_dependencies "php${phpversion}-fpm" + #================================================= # NGINX CONFIGURATION #=================================================