From 725926b354b3e68b92e3d7512d8d5016082a7609 Mon Sep 17 00:00:00 2001 From: dragondaddy Date: Tue, 14 Nov 2023 04:56:45 +0100 Subject: [PATCH] Extended description of the branch switching option --- config_panel.toml | 24 ++++++++++++------------ scripts/config | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/config_panel.toml b/config_panel.toml index 1ac7639..f3117c1 100644 --- a/config_panel.toml +++ b/config_panel.toml @@ -4,18 +4,6 @@ version = "1.0" name.en = "Streams configuration" name.fr = "Configuration de Streams" - [main.git_branch_mode] - name.en = "'dev' branch" - name.fr = "Branche 'dev'" - - [main.git_branch_mode.git_branch_mode] - ask.en = "Switch to git 'dev' branch" - ask.fr = "Basculer sur la branche git 'dev'" - type = "boolean" - default = "0" - help.en = "Use at your own risk, if you know exactly what you're doing." - help.fr = "À utiliser à vos risques et périls, si vous savez exactement ce que vous faîtes." - [main.php_fpm_config] name.en = "PHP-FPM configuration" name.fr = "Configuration de PHP-FPM" @@ -46,3 +34,15 @@ name.fr = "Configuration de Streams" default = "medium" help.en = "low: Personal usage, behind the SSO. No RAM footprint when not used, but the impact on the processor can be high if many users are using the service.
medium: Low usage, few people or/and publicly accessible. Low RAM footprint, medium processor footprint when used.
high: High usage, frequently visited website. High RAM footprint, but lower on processor usage and quickly responding." help.fr = "low : Utilisation personnelle, derrière le SSO. Pas d'empreinte RAM en cas de non-utilisation, mais l'impact sur le processeur peut être élevé si de nombreux utilisateurs utilisent le service.
medium : Faible utilisation, peu d'utilisateurs et/ou service pas nécessairement accessible au public. Faible empreinte RAM, empreinte moyenne sur le processeur en cas d'utilisation.
high : Utilisation soutenue, site web fréquemment visité. L'empreinte RAM est élevée, mais l'utilisation du processeur est moindre et le service répond rapidement." + + [main.git_branch_mode] + name.en = "'dev' branch" + name.fr = "Branche 'dev'" + + [main.git_branch_mode.git_branch_mode] + ask.en = "Switch to git 'dev' branch" + ask.fr = "Basculer sur la branche git 'dev'" + type = "boolean" + default = "0" + help.en = "This option should only be used if you're either a professional software developer or a certified lunatic (or both).

You can only return to the 'release' branch if it is ahead of the 'dev' branch.

You must be able to use the command line to solve any problems you may encounter after using this option.

If you haven't understood any of the above lines DON'T USE THIS OPTION!!!" + help.fr = "Cette option ne devrait être utilisée que si vous êtes un développeur de logiciels professionnel ou une personne totalement insensée (ou les deux)

Vous ne pourrez revenir à la branche 'release' que si celle-ci est en avance sur la branche 'dev'.

Vous devez impérativement être capable d'utiliser la ligne de commande pour résoudre tout problème que vous pourriez rencontrer après avoir utilisé cette option.

Si vous n'avez rien compris aux lignes ci-dessus N'UTILISEZ PAS CETTE OPTION!!!" diff --git a/scripts/config b/scripts/config index a99cef8..61bd5e1 100644 --- a/scripts/config +++ b/scripts/config @@ -69,7 +69,7 @@ set__git_branch_mode() { if [ "$git_branch_mode" -eq "0" ] then # We allow switch back to "release" only if the branch is ahead of "dev" - if [ -z "$(cd "$install_dir" && git log release..dev)" ] + if [ -z "$(cd "$install_dir" && git log --oneline release..dev)" ] then # If git_branch was set to 0, switch to "release" branch (cd "$install_dir" && ynh_exec_as "$app" git checkout release)