From 405e48c88e3673e9b3e44c89517d99ca50b73166 Mon Sep 17 00:00:00 2001 From: Kayou Date: Tue, 30 Apr 2024 17:10:40 +0200 Subject: [PATCH 1/3] #245 fix user creation (add organization), used gitlab-rails runner instead of console, which should crash if user is not created --- scripts/install | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/scripts/install b/scripts/install index 973ecdd..3984b47 100644 --- a/scripts/install +++ b/scripts/install @@ -128,15 +128,14 @@ ynh_add_nginx_config client_max_body_size #================================================= ynh_script_progression --message="Creating an administrator user..." --weight=13 -mailadmin=$(ynh_user_get_info --username=$admin --key=mail) +mailAdmin=$(ynh_user_get_info --username=$admin --key=mail) +fullnameAdmin=$(ynh_user_get_info --username=$admin --key=fullname) rdmPass=$(ynh_string_random --length=30) -echo "newuser = User.new({ \"email\"=>'$mailadmin', \"username\"=>'$admin', \"name\"=>'$admin', \"password\"=>'$rdmPass'}) -newuser.admin = true -newuser.confirmed_at = Time.now -newuser.confirmation_token = nil -newuser.save! -ApplicationSetting.last.update(password_authentication_enabled_for_web: $use_web_account, signup_enabled: $use_web_account)" | gitlab-rails console +gitlab-rails runner "newuser = User.new(username: \"$admin\", email: \"$mailAdmin\", name: \"$fullnameAdmin\", password: \"$rdmPass\", admin: true, skip_confirmation: true);\ + newuser.assign_personal_namespace(Organizations::Organization.default_organization);\ + newuser.save!;\ + ApplicationSetting.last.update(password_authentication_enabled_for_web: $use_web_account, signup_enabled: $use_web_account);" #================================================= # RECONFIGURE TO TAKE INTO ACCOUNT CHANGES From 14f0afb4fd1b060e3fd02bdd390067a49938183e Mon Sep 17 00:00:00 2001 From: Kay0u Date: Mon, 13 May 2024 20:41:12 +0200 Subject: [PATCH 2/3] 16.11.2 --- manifest.toml | 2 +- scripts/upgrade.d/upgrade.last.sh | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/manifest.toml b/manifest.toml index 27f5f0f..4f84440 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "GitLab" description.en = "Git-repository manager providing wiki, issue-tracking and CI/CD pipeline features" description.fr = "Gestionnaire de dépôts Git proposant des fonctionnalités de wiki, suivi de bugs et de pipeline CI/CD" -version = "16.11.1~ynh1" +version = "16.11.2~ynh1" maintainers = ["kay0u"] diff --git a/scripts/upgrade.d/upgrade.last.sh b/scripts/upgrade.d/upgrade.last.sh index 09d8a41..1d6e233 100644 --- a/scripts/upgrade.d/upgrade.last.sh +++ b/scripts/upgrade.d/upgrade.last.sh @@ -1,22 +1,22 @@ #!/bin/bash -gitlab_version="16.11.1" +gitlab_version="16.11.2" # Upgrade path: https://gitlab-com.gitlab.io/support/toolbox/upgrade-path/ # sha256sum found here: https://packages.gitlab.com/gitlab gitlab_debian_version="$(lsb_release -sc)" -gitlab_x86_64_bookworm_source_sha256="23fe5d12e90cfbdeadabfea85594497f1c3e44b7c49ae1541571f8f2556e74f3" -gitlab_x86_64_bullseye_source_sha256="3894448de581f9d77706c0ef95fc341d93b3d0882687f69557e8ff8a87e88a47" -gitlab_x86_64_buster_source_sha256="783ad4707bda7fdf21474aeaae9be81619b14aa90ee65768d3066847acd19a9b" +gitlab_x86_64_bookworm_source_sha256="339c827c08697817df5ed05387df9a58d2bf138181bb9c2b7b11a3803ab12e7c" +gitlab_x86_64_bullseye_source_sha256="6199c64689c31cf48225d064001f645540c139931699930fba4a9ad1e539c205" +gitlab_x86_64_buster_source_sha256="433bd5d6d2988b276d3767912e3035f3eb913d7e98a7ceb46e0325a4be0af0b4" -gitlab_arm64_bookworm_source_sha256="221ed443a50ade732df2ccf412aba4e46d65ca7108b93c88178ff77a827c82ef" -gitlab_arm64_bullseye_source_sha256="c0397400eae391921f457d37e2724c9ea465b2613cc950b6b68c633fef168f3a" -gitlab_arm64_buster_source_sha256="5fef5d810001807d2fca870e49b6e8e28b57ebd58e798680c7451dfbb9230920" +gitlab_arm64_bookworm_source_sha256="98e259ffe7c1466836b762c7b41e7d1203b31cc440129046ec1ca0072ae76df1" +gitlab_arm64_bullseye_source_sha256="9c53d88dff37bd64b1e5d9832edec5984a6420475d21dc32cb46281268eaafec" +gitlab_arm64_buster_source_sha256="951bb731adf2177b1fd74b0cc0f774cd7ee3b4ea951216cf1f245a78bcbc6159" gitlab_arm_bookworm_source_sha256="" -gitlab_arm_bullseye_source_sha256="3500b408d5f69fdaae33d5e19f397495fd56c12616fa4286e2ddf0ccab208696" -gitlab_arm_buster_source_sha256="c37f95a5ce8522b4b8f9314fc83a5759d6c27e188ef1c0bc16ade573f3ced294" +gitlab_arm_bullseye_source_sha256="56180fb6c7565fbccff14d868ccb3412a89c11212726a91e576df8fce5d79288" +gitlab_arm_buster_source_sha256="b5e42c8f3c32683df957d1522c39af0165a33e27132a55fb18690db56f662ab8" architecture=$(ynh_app_setting_get --app="$app" --key=architecture) From f7ca0ba2f1aa808a7198c16ad9d795a71ca36794 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Mon, 13 May 2024 18:44:12 +0000 Subject: [PATCH 3/3] Auto-update READMEs --- ALL_README.md | 1 + README.md | 2 +- README_es.md | 49 +++++++++++++++++++++++++++++++++++++++++++++++ README_eu.md | 2 +- README_fr.md | 2 +- README_gl.md | 2 +- README_zh_Hans.md | 4 ++-- 7 files changed, 56 insertions(+), 6 deletions(-) create mode 100644 README_es.md diff --git a/ALL_README.md b/ALL_README.md index a01b345..8938aae 100644 --- a/ALL_README.md +++ b/ALL_README.md @@ -1,6 +1,7 @@ # All available README files by language - [Read the README in English](README.md) +- [Lee el README en español](README_es.md) - [Irakurri README euskaraz](README_eu.md) - [Lire le README en français](README_fr.md) - [Le o README en galego](README_gl.md) diff --git a/README.md b/README.md index 6613b92..f421aa7 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ It shall NOT be edited by hand. Git-repository manager providing wiki, issue-tracking and CI/CD pipeline features -**Shipped version:** 16.11.1~ynh1 +**Shipped version:** 16.11.2~ynh1 **Demo:** diff --git a/README_es.md b/README_es.md new file mode 100644 index 0000000..aede3c9 --- /dev/null +++ b/README_es.md @@ -0,0 +1,49 @@ + + +# GitLab para Yunohost + +[![Nivel de integración](https://dash.yunohost.org/integration/gitlab.svg)](https://dash.yunohost.org/appci/app/gitlab) ![Estado funcional](https://ci-apps.yunohost.org/ci/badges/gitlab.status.svg) ![Estado En Mantención](https://ci-apps.yunohost.org/ci/badges/gitlab.maintain.svg) + +[![Instalar GitLab con Yunhost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=gitlab) + +*[Leer este README en otros idiomas.](./ALL_README.md)* + +> *Este paquete le permite instalarGitLab rapidamente y simplement en un servidor YunoHost.* +> *Si no tiene YunoHost, visita [the guide](https://yunohost.org/install) para aprender como instalarla.* + +## Descripción general + +Git-repository manager providing wiki, issue-tracking and CI/CD pipeline features + +**Versión actual:** 16.11.2~ynh1 + +**Demo:** + +## Capturas + +![Captura de GitLab](./doc/screenshots/GitLab_running_11.0_(2018-07).png) + +## Documentaciones y recursos + +- Sitio web oficial: +- Documentación administrador oficial: +- Repositorio del código fuente oficial de la aplicación : +- Catálogo YunoHost: +- Reportar un error: + +## Información para desarrolladores + +Por favor enviar sus correcciones a la [`branch testing`](https://github.com/YunoHost-Apps/gitlab_ynh/tree/testing + +Para probar la rama `testing`, sigue asÍ: + +```bash +sudo yunohost app install https://github.com/YunoHost-Apps/gitlab_ynh/tree/testing --debug +o +sudo yunohost app upgrade gitlab -u https://github.com/YunoHost-Apps/gitlab_ynh/tree/testing --debug +``` + +**Mas informaciones sobre el empaquetado de aplicaciones:** diff --git a/README_eu.md b/README_eu.md index 0f2a4d3..25ec377 100644 --- a/README_eu.md +++ b/README_eu.md @@ -18,7 +18,7 @@ EZ editatu eskuz. Git-repository manager providing wiki, issue-tracking and CI/CD pipeline features -**Paketatutako bertsioa:** 16.11.1~ynh1 +**Paketatutako bertsioa:** 16.11.2~ynh1 **Demoa:** diff --git a/README_fr.md b/README_fr.md index fc00307..2aebd89 100644 --- a/README_fr.md +++ b/README_fr.md @@ -18,7 +18,7 @@ Il NE doit PAS être modifié à la main. Gestionnaire de dépôts Git proposant des fonctionnalités de wiki, suivi de bugs et de pipeline CI/CD -**Version incluse :** 16.11.1~ynh1 +**Version incluse :** 16.11.2~ynh1 **Démo :** diff --git a/README_gl.md b/README_gl.md index 7126619..aa31d45 100644 --- a/README_gl.md +++ b/README_gl.md @@ -18,7 +18,7 @@ NON debe editarse manualmente. Git-repository manager providing wiki, issue-tracking and CI/CD pipeline features -**Versión proporcionada:** 16.11.1~ynh1 +**Versión proporcionada:** 16.11.2~ynh1 **Demo:** diff --git a/README_zh_Hans.md b/README_zh_Hans.md index 1172c56..654ed21 100644 --- a/README_zh_Hans.md +++ b/README_zh_Hans.md @@ -3,7 +3,7 @@ 请勿手动编辑。 --> -# YunoHost 的 GitLab +# YunoHost 上的 GitLab [![集成程度](https://dash.yunohost.org/integration/gitlab.svg)](https://dash.yunohost.org/appci/app/gitlab) ![工作状态](https://ci-apps.yunohost.org/ci/badges/gitlab.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/gitlab.maintain.svg) @@ -18,7 +18,7 @@ Git-repository manager providing wiki, issue-tracking and CI/CD pipeline features -**分发版本:** 16.11.1~ynh1 +**分发版本:** 16.11.2~ynh1 **演示:**