From f2315295b1a9dd128280455c0834b7c336cf7052 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 16 Nov 2020 10:28:02 +0100 Subject: [PATCH] Add README_fr --- README.md | 2 +- README_fr.md | 67 ++++++++++++++++++++++++++++++++++++++++++++++ scripts/change_url | 7 +---- scripts/install | 4 +-- scripts/upgrade | 8 +++++- 5 files changed, 78 insertions(+), 10 deletions(-) create mode 100644 README_fr.md diff --git a/README.md b/README.md index cf54d3b..010978e 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/install) to learn how to install it.* ## Overview -MineWeb est un CMS (c'est-à-dire un système de gestion de contenu), en plus simple, un site complètement personnalisable et intuitif, qui s'adaptera parfaitement à vos serveurs Minecraft ! +MineWeb is a CMS (that is to say a content management system), in addition, a completely customizable and intuitive site, which will adapt perfectly to your Minecraft servers! **Shipped version:** 1.10.3 diff --git a/README_fr.md b/README_fr.md new file mode 100644 index 0000000..b486894 --- /dev/null +++ b/README_fr.md @@ -0,0 +1,67 @@ +# MineWeb pour YunoHost + +[![Integration level](https://dash.yunohost.org/integration/mineweb.svg)](https://dash.yunohost.org/appci/app/mineweb) ![](https://ci-apps.yunohost.org/ci/badges/mineweb.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/mineweb.maintain.svg) +[![Installer MineWeb avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.png)](https://install-app.yunohost.org/?app=mineweb) + +*[Read this readme in english.](./README.md)* + +> *Ce package vous permet d'installer MineWeb rapidement et simplement sur un serveur YunoHost. +Si vous n'avez pas YunoHost, consultez [le guide](https://yunohost.org/#/install) pour apprendre comment l'installer.* + +## Vue d'ensemble +MineWeb est un CMS (c'est-à-dire un système de gestion de contenu), en plus simple, un site complètement personnalisable et intuitif, qui s'adaptera parfaitement à vos serveurs Minecraft ! + +**Version incluse :** 1.10.3 + +## Captures d'écran + +![](https://mineweb.org/assets/img/features1_mb.png) + +## Configuration + +Comment configurer cette application : via le panneau d'administration + +## Documentation + +* Documentation officielle : https://docs.mineweb.org/ + * Documentation YunoHost : Si une documentation spécifique est nécessaire, n'hésitez pas à contribuer. + +## Caractéristiques spécifiques YunoHost + +#### Support multi-utilisateur + +* L'authentification LDAP et HTTP est-elle prise en charge ? +* L'application peut-elle être utilisée par plusieurs utilisateurs ? + +#### Architectures supportées + +* x86-64 - [![Build Status](https://ci-apps.yunohost.org/ci/logs/mineweb%20%28Apps%29.svg)](https://ci-apps.yunohost.org/ci/apps/mineweb/) +* ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/minewebP%20%28Apps%29.svg)](https://ci-apps-arm.yunohost.org/ci/apps/mineweb/) + +## Limitations + +* Limitations connues. + +## Informations additionnelles + +* Autres informations que vous souhaitez ajouter sur cette application. + +## Liens + + * Signaler un bug : https://github.com/YunoHost-Apps/mineweb_ynh/issues + * Site de l'application : https://mineweb.org/ + * Dépôt de l'application principale : https://github.com/MineWeb/MineWebCMS/ + * Site web YunoHost : https://yunohost.org/ + +--- + +## Informations pour les développeurs + +Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/mineweb_ynh/tree/testing). + +Pour essayer la branche testing, procédez comme suit. +``` +sudo yunohost app install https://github.com/YunoHost-Apps/mineweb_ynh/tree/testing --debug +ou +sudo yunohost app upgrade mineweb -u https://github.com/YunoHost-Apps/mineweb_ynh/tree/testing --debug +``` diff --git a/scripts/change_url b/scripts/change_url index 6867990..d162d12 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -29,15 +29,10 @@ ynh_script_progression --message="Loading installation settings..." --weight=1 # Needed for helper "ynh_add_nginx_config" final_path=$(ynh_app_setting_get --app=$app --key=final_path) -# Add settings here as needed by your application -#db_name=$(ynh_app_setting_get --app=$app --key=db_name) -#db_user=$db_name -#db_pwd=$(ynh_app_setting_get --app=$app --key=db_pwd) - #================================================= # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP #================================================= -ynh_script_progression --message="Backing up MineWeb before changing its url (may take a while)..." --weight=1 +ynh_script_progression --message="Backing up MineWeb before changing its URL (may take a while)..." --weight=1 # Backup the current version of the app ynh_backup_before_upgrade diff --git a/scripts/install b/scripts/install index 02fe2c2..e35b17d 100644 --- a/scripts/install +++ b/scripts/install @@ -92,7 +92,7 @@ ynh_system_user_create --username=$app ynh_script_progression --message="Configuring PHP-FPM..." --weight=2 # Create a dedicated PHP-FPM config -ynh_add_fpm_config --phpversion=$YNH_PHP_VERSION --package="$extra_php_dependencies" +ynh_add_fpm_config --package="$extra_php_dependencies" phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) #================================================= @@ -106,7 +106,7 @@ ynh_replace_string --match_string="__DBPWD__" --replace_string="$db_pwd" --tar ynh_replace_string --match_string="__DBNAME__" --replace_string="$db_name" --target_file="$final_path/app/Config/database.php" #================================================= -# MODIFY A CONFIG FILE +# MODIFY FIRST.CTP #================================================= ynh_replace_string --match_string="app/webroot/" --replace_string="" --target_file="$final_path/app/View/Install/first.ctp" diff --git a/scripts/upgrade b/scripts/upgrade index a3b773e..19b98c5 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -103,7 +103,13 @@ ynh_system_user_create --username=$app ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=2 # Create a dedicated PHP-FPM config -ynh_add_fpm_config --phpversion=$YNH_PHP_VERSION --package="$extra_php_dependencies" +ynh_add_fpm_config --package="$extra_php_dependencies" + +#================================================= +# MODIFY FIRST.CTP +#================================================= + +# ynh_replace_string --match_string="app/webroot/" --replace_string="" --target_file="$final_path/app/View/Install/first.ctp" #================================================= # GENERIC FINALIZATION