From 950fa6a8201532b224ad692c35a2052e78eb263f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Fri, 10 Nov 2023 10:08:21 +0100 Subject: [PATCH] Cleaning --- doc/DESCRIPTION_fr.md | 1 + manifest.toml | 2 +- scripts/install | 4 ++-- scripts/remove | 5 +++-- scripts/restore | 4 +++- scripts/upgrade | 4 ++-- 6 files changed, 12 insertions(+), 8 deletions(-) create mode 100644 doc/DESCRIPTION_fr.md diff --git a/doc/DESCRIPTION_fr.md b/doc/DESCRIPTION_fr.md new file mode 100644 index 0000000..f4154ba --- /dev/null +++ b/doc/DESCRIPTION_fr.md @@ -0,0 +1 @@ +Créer simplement et rapidement votre site de Petites Annonces. \ No newline at end of file diff --git a/manifest.toml b/manifest.toml index 34bd838..e12b2b1 100644 --- a/manifest.toml +++ b/manifest.toml @@ -1,7 +1,7 @@ packaging_format = 2 id = "petitesannonces" -name = "PetitesAnnonces" +name = "Petites Annonces" description.en = "Make your own classified advertising website easily" description.fr = "Créer simplement et rapidement votre site de Petites Annonces" diff --git a/scripts/install b/scripts/install index 24e8aca..f421016 100755 --- a/scripts/install +++ b/scripts/install @@ -21,9 +21,9 @@ chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" #================================================= -# PHP-FPM CONFIGURATION +# SYSTEM CONFIGURATION #================================================= -ynh_script_progression --message="Configuring PHP-FPM..." --weight=1 +ynh_script_progression --message="Adding system configurations related to $app..." --weight=1 # Create a dedicated php-fpm config ynh_add_fpm_config diff --git a/scripts/remove b/scripts/remove index 165b255..bb743f3 100755 --- a/scripts/remove +++ b/scripts/remove @@ -10,9 +10,10 @@ source _common.sh source /usr/share/yunohost/helpers #================================================= -# REMOVE NGINX CONFIGURATION +# REMOVE SYSTEM CONFIGURATIONS #================================================= -ynh_script_progression --message="Removing NGINX web server configuration..." --weight=1 +ynh_script_progression --message="Removing system configurations related to $app..." --weight=1 + # Remove the dedicated nginx config ynh_remove_nginx_config diff --git a/scripts/restore b/scripts/restore index 4d19fc1..a1fa36a 100755 --- a/scripts/restore +++ b/scripts/restore @@ -27,10 +27,12 @@ ynh_script_progression --message="Restoring the MySQL database..." --weight=1 ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql +#================================================= +# RESTORE SYSTEM CONFIGURATIONS #================================================= # RESTORE THE PHP-FPM CONFIGURATION #================================================= -ynh_script_progression --message="Restoring the PHP-FPM configuration..." --weight=1 +ynh_script_progression --message="Restoring system configurations related to $app..." --weight=1 ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" diff --git a/scripts/upgrade b/scripts/upgrade index 867b0ba..4b7b4e8 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -31,9 +31,9 @@ chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" #================================================= -# PHP-FPM CONFIGURATION +# REAPPLY SYSTEM CONFIGURATIONS #================================================= -ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=1 +ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1 # Create a dedicated php-fpm config ynh_add_fpm_config