mirror of
https://github.com/YunoHost-Apps/streams_ynh.git
synced 2024-09-03 20:26:20 +02:00
Extended description of the branch switching option
This commit is contained in:
parent
a2818bf05a
commit
725926b354
2 changed files with 13 additions and 13 deletions
|
@ -4,18 +4,6 @@ version = "1.0"
|
||||||
name.en = "Streams configuration"
|
name.en = "Streams configuration"
|
||||||
name.fr = "Configuration de Streams"
|
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]
|
[main.php_fpm_config]
|
||||||
name.en = "PHP-FPM configuration"
|
name.en = "PHP-FPM configuration"
|
||||||
name.fr = "Configuration de PHP-FPM"
|
name.fr = "Configuration de PHP-FPM"
|
||||||
|
@ -46,3 +34,15 @@ name.fr = "Configuration de Streams"
|
||||||
default = "medium"
|
default = "medium"
|
||||||
help.en = "<strong>low</strong>: 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.<br><strong>medium</strong>: Low usage, few people or/and publicly accessible. Low RAM footprint, medium processor footprint when used.<br><strong>high</strong>: High usage, frequently visited website. High RAM footprint, but lower on processor usage and quickly responding."
|
help.en = "<strong>low</strong>: 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.<br><strong>medium</strong>: Low usage, few people or/and publicly accessible. Low RAM footprint, medium processor footprint when used.<br><strong>high</strong>: High usage, frequently visited website. High RAM footprint, but lower on processor usage and quickly responding."
|
||||||
help.fr = "<strong>low</strong> : 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.<br><strong>medium</strong> : 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.<br><strong>high</strong> : 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."
|
help.fr = "<strong>low</strong> : 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.<br><strong>medium</strong> : 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.<br><strong>high</strong> : 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 = "<strong>This option should only be used if you're either a professional software developer or a certified lunatic (or both).</strong><br><br>You can only return to the 'release' branch if it is ahead of the 'dev' branch.<br><br>You must be able to use the command line to solve any problems you may encounter after using this option.<br><br>If you haven't understood any of the above lines <strong>DON'T USE THIS OPTION!!!</strong>"
|
||||||
|
help.fr = "<strong>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)</strong><br><br>Vous ne pourrez revenir à la branche 'release' que si celle-ci est en avance sur la branche 'dev'.<br><br>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.<br><br>Si vous n'avez rien compris aux lignes ci-dessus <strong>N'UTILISEZ PAS CETTE OPTION!!!</strong>"
|
||||||
|
|
|
@ -69,7 +69,7 @@ set__git_branch_mode() {
|
||||||
if [ "$git_branch_mode" -eq "0" ]
|
if [ "$git_branch_mode" -eq "0" ]
|
||||||
then
|
then
|
||||||
# We allow switch back to "release" only if the branch is ahead of "dev"
|
# 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
|
then
|
||||||
# If git_branch was set to 0, switch to "release" branch
|
# If git_branch was set to 0, switch to "release" branch
|
||||||
(cd "$install_dir" && ynh_exec_as "$app" git checkout release)
|
(cd "$install_dir" && ynh_exec_as "$app" git checkout release)
|
||||||
|
|
Loading…
Add table
Reference in a new issue